MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / set

Method set

tools/python-3.11.9-amd64/Lib/threading.py:590–599  ·  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

588 return self.is_set()
589
590 def set(self):
591 """Set the internal flag to true.
592
593 All threads waiting for it to become true are awakened. Threads
594 that call wait() once the flag is true will not block at all.
595
596 """
597 with self._cond:
598 self._flag = True
599 self._cond.notify_all()
600
601 def clear(self):
602 """Reset the internal flag to false.

Callers 8

_bootstrap_innerMethod · 0.45
cancelMethod · 0.45
runMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
getcontextFunction · 0.45
setcontextFunction · 0.45
serve_foreverMethod · 0.45

Calls 1

notify_allMethod · 0.45

Tested by

no test coverage detected