(self)
| 740 | # If we are the last thread to exit the barrier, signal any threads |
| 741 | # waiting for the barrier to drain. |
| 742 | def _exit(self): |
| 743 | if self._count == 0: |
| 744 | if self._state in (-1, 1): |
| 745 | #resetting or draining |
| 746 | self._state = 0 |
| 747 | self._cond.notify_all() |
| 748 | |
| 749 | def reset(self): |
| 750 | """Reset the barrier to the initial state. |
no test coverage detected