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

Method _exit

Lib/threading.py:785–790  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

783 # If we are the last thread to exit the barrier, signal any threads
784 # waiting for the barrier to drain.
785 def _exit(self):
786 if self._count == 0:
787 if self._state in (-1, 1):
788 #resetting or draining
789 self._state = 0
790 self._cond.notify_all()
791
792 def reset(self):
793 """Reset the barrier to the initial state.

Callers 3

waitMethod · 0.95
process_requestMethod · 0.45

Calls 1

notify_allMethod · 0.45

Tested by 1