(self)
| 776 | # If we are the last thread to exit the barrier, signal any threads |
| 777 | # waiting for the barrier to drain. |
| 778 | def _exit(self): |
| 779 | if self._count == 0: |
| 780 | if self._state in (-1, 1): |
| 781 | #resetting or draining |
| 782 | self._state = 0 |
| 783 | self._cond.notify_all() |
| 784 | |
| 785 | def reset(self): |
| 786 | """Reset the barrier to the initial state. |
no test coverage detected