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

Method _exit

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

Source from the content-addressed store, hash-verified

776 # If we are the last thread to exit the barrier, signal any threads
777 # waiting for the barrier to drain.
778 def _exit(self):
779 if self._count == 0:
780 if self._state in (-1, 1):
781 #resetting or draining
782 self._state = 0
783 self._cond.notify_all()
784
785 def reset(self):
786 """Reset the barrier to the initial state.

Callers 2

waitMethod · 0.95
process_requestMethod · 0.45

Calls 1

notify_allMethod · 0.45

Tested by

no test coverage detected