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

Method abort

Lib/threading.py:805–813  ·  view source on GitHub ↗

Place the barrier into a 'broken' state. Useful in case of error. Any currently waiting threads and threads attempting to 'wait()' will have BrokenBarrierError raised.

(self)

Source from the content-addressed store, hash-verified

803 self._cond.notify_all()
804
805 def abort(self):
806 """Place the barrier into a 'broken' state.
807
808 Useful in case of error. Any currently waiting threads and threads
809 attempting to 'wait()' will have BrokenBarrierError raised.
810
811 """
812 with self._cond:
813 self._break()
814
815 def _break(self):
816 # An internal error was detected. The barrier is set to

Callers

nothing calls this directly

Calls 1

_breakMethod · 0.95

Tested by

no test coverage detected