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

Method clear

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

632 self._cond.notify_all()
633
634 def clear(self):
635 """Reset the internal flag to false.
636
637 Subsequently, threads calling wait() will block until set() is called to
638 set the internal flag to true again.
639
640 """
641 with self._cond:
642 self._flag = False
643
644 def wait(self, timeout=None):
645 """Block until the internal flag is true.

Callers 2

_at_fork_reinitMethod · 0.45
_after_forkFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected