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

Method _release

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

Source from the content-addressed store, hash-verified

758 # Optionally run the 'action' and release the threads waiting
759 # in the barrier.
760 def _release(self):
761 try:
762 if self._action:
763 self._action()
764 # enter draining state
765 self._state = 1
766 self._cond.notify_all()
767 except:
768 #an exception during the _action handler. Break and reraise
769 self._break()
770 raise
771
772 # Wait in the barrier until we are released. Raise an exception
773 # if the barrier is reset or broken.

Callers 1

waitMethod · 0.95

Calls 2

_breakMethod · 0.95
notify_allMethod · 0.45

Tested by

no test coverage detected