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)
| 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 |