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

Method _release

tools/python-3.11.9-amd64/Lib/threading.py:717–727  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

715 # Optionally run the 'action' and release the threads waiting
716 # in the barrier.
717 def _release(self):
718 try:
719 if self._action:
720 self._action()
721 # enter draining state
722 self._state = 1
723 self._cond.notify_all()
724 except:
725 #an exception during the _action handler. Break and reraise
726 self._break()
727 raise
728
729 # Wait in the barrier until we are released. Raise an exception
730 # 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