Set the internal flag to true. All threads waiting for it to become true are awakened. Threads that call wait() once the flag is true will not block at all.
(self)
| 621 | return self.is_set() |
| 622 | |
| 623 | def set(self): |
| 624 | """Set the internal flag to true. |
| 625 | |
| 626 | All threads waiting for it to become true are awakened. Threads |
| 627 | that call wait() once the flag is true will not block at all. |
| 628 | |
| 629 | """ |
| 630 | with self._cond: |
| 631 | self._flag = True |
| 632 | self._cond.notify_all() |
| 633 | |
| 634 | def clear(self): |
| 635 | """Reset the internal flag to false. |
no test coverage detected