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

Method clear

Lib/threading.py:641–649  ·  view source on GitHub ↗

Reset the internal flag to false. Subsequently, threads calling wait() will block until set() is called to set the internal flag to true again.

(self)

Source from the content-addressed store, hash-verified

639 self._cond.notify_all()
640
641 def clear(self):
642 """Reset the internal flag to false.
643
644 Subsequently, threads calling wait() will block until set() is called to
645 set the internal flag to true again.
646
647 """
648 with self._cond:
649 self._flag = False
650
651 def wait(self, timeout=None):
652 """Block until the internal flag is true.

Callers 15

cache_clearFunction · 0.45
dispatchFunction · 0.45
registerFunction · 0.45
_strptimeFunction · 0.45
reload_environFunction · 0.45
clear_extension_cacheFunction · 0.45
flushMethod · 0.45
closeMethod · 0.45
_at_fork_reinitMethod · 0.45
_after_forkFunction · 0.45
clear_framesFunction · 0.45
create_connectionFunction · 0.45

Calls

no outgoing calls

Tested by 3

runMethod · 0.36
runMethod · 0.36
tearDownMethod · 0.36