MCPcopy Index your code
hub / github.com/python/cpython / set

Method set

Lib/threading.py:623–632  ·  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

621 return self.is_set()
622
623 def set(self):
624 """Set the internal flag to true.
625
626 All threads waiting for it to become true are awakened. Threads
627 that call wait() once the flag is true will not block at all.
628
629 """
630 with self._cond:
631 self._flag = True
632 self._cond.notify_all()
633
634 def clear(self):
635 """Reset the internal flag to false.

Callers 12

_bootstrap_innerMethod · 0.45
cancelMethod · 0.45
runMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
stop_threadMethod · 0.45
_set_contextFunction · 0.45
__exit__Method · 0.45
getcontextFunction · 0.45
setcontextFunction · 0.45
serve_foreverMethod · 0.45
write_outputFunction · 0.45

Calls 1

notify_allMethod · 0.45

Tested by

no test coverage detected