class documentation
class SingleNotifyPipeCondition(_BaseCondition):
Condition which can only be notified once.
This condition class uses pipes and poll, internally, to be able to wait for notification with a timeout, without resorting to polling. It is almost compatible with Python's threading.Condition, with the following differences:
- notify_all can only be called once, and no wait can happen after that
- notify is not supported, only notify_all
Method | __init__ |
Constructor for SingleNotifyPipeCondition |
Method | notify |
Close the writing side of the pipe to notify all waiters. |
Method | wait |
Wait for a notification. |
Class Variable | __slots__ |
Undocumented |
Method | _check |
Throws an exception if already notified. |
Method | _ |
Cleanup open file descriptors, if any. |
Instance Variable | _notified |
Undocumented |
Instance Variable | _nwaiters |
Undocumented |
Instance Variable | _read |
Undocumented |
Instance Variable | _write |
Undocumented |
Inherited from _BaseCondition
:
Instance Variable | acquire |
Undocumented |
Instance Variable | release |
Undocumented |
Method | _base |
Undocumented |
Method | _base |
Check whether lock is owned by current thread. |
Method | _base |
Undocumented |
Method | _check |
Raise an exception if the current thread doesn't own the lock. |
Instance Variable | _acquire |
Undocumented |
Instance Variable | _is |
Undocumented |
Instance Variable | _lock |
Undocumented |
Instance Variable | _release |
Undocumented |