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

Method clear

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

599 self._cond.notify_all()
600
601 def clear(self):
602 """Reset the internal flag to false.
603
604 Subsequently, threads calling wait() will block until set() is called to
605 set the internal flag to true again.
606
607 """
608 with self._cond:
609 self._flag = False
610
611 def wait(self, timeout=None):
612 """Block until the internal flag is true.

Callers 15

cache_clearFunction · 0.45
dispatchFunction · 0.45
registerFunction · 0.45
_strptimeFunction · 0.45
visit_ModuleMethod · 0.45
visit_JoinedStrMethod · 0.45
clear_extension_cacheFunction · 0.45
closeMethod · 0.45
_at_fork_reinitMethod · 0.45
_shutdownFunction · 0.45
_after_forkFunction · 0.45
_select_fromMethod · 0.45

Calls

no outgoing calls

Tested by 3

runMethod · 0.36
runMethod · 0.36
tearDownMethod · 0.36