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)
| 810 | self._cond.notify_all() |
| 811 | |
| 812 | def abort(self): |
| 813 | """Place the barrier into a 'broken' state. |
| 814 | |
| 815 | Useful in case of error. Any currently waiting threads and threads |
| 816 | attempting to 'wait()' will have BrokenBarrierError raised. |
| 817 | |
| 818 | """ |
| 819 | with self._cond: |
| 820 | self._break() |
| 821 | |
| 822 | def _break(self): |
| 823 | # An internal error was detected. The barrier is set to |