MCPcopy Index your code
hub / github.com/RustPython/RustPython / set

Method set

Lib/threading.py:630–639  ·  view source on GitHub ↗

Set the internal flag to true. All threads waiting for it to become true are awakened. Threads that call wait() once the flag is true will not block at all.

(self)

Source from the content-addressed store, hash-verified

628 return self.is_set()
629
630 def set(self):
631 """Set the internal flag to true.
632
633 All threads waiting for it to become true are awakened. Threads
634 that call wait() once the flag is true will not block at all.
635
636 """
637 with self._cond:
638 self._flag = True
639 self._cond.notify_all()
640
641 def clear(self):
642 """Reset the internal flag to false.

Callers 13

test_basic_managerFunction · 0.95
_bootstrap_innerMethod · 0.45
cancelMethod · 0.45
runMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
_set_contextFunction · 0.45
__exit__Method · 0.45
getcontextFunction · 0.45
setcontextFunction · 0.45

Calls 1

notify_allMethod · 0.45