Reset the internal flag to false. Subsequently, threads calling wait() will block until set() is called to set the internal flag to true again.
(self)
| 599 | self._cond.notify_all() |
| 600 | |
| 601 | def clear(self): |
| 602 | """Reset the internal flag to false. |
| 603 | |
| 604 | Subsequently, threads calling wait() will block until set() is called to |
| 605 | set the internal flag to true again. |
| 606 | |
| 607 | """ |
| 608 | with self._cond: |
| 609 | self._flag = False |
| 610 | |
| 611 | def wait(self, timeout=None): |
| 612 | """Block until the internal flag is true. |
no outgoing calls