class documentation
class PipeCondition(_BaseCondition):
Known subclasses: ganeti.locking._PipeConditionWithMode
Group-only non-polling condition with counters.
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, but only supports notify_all and non-recursive locks. As an additional features it's able to report whether there are any waiting threads.
Method | __init__ |
Initializes this class. |
Method | __repr__ |
Undocumented |
Method | get |
Returns a list of all waiting threads. |
Method | has |
Returns whether there are active waiters. |
Method | notify |
Notify all currently waiting threads. |
Method | wait |
Wait for a notification. |
Class Variable | __slots__ |
Undocumented |
Instance Variable | _single |
Undocumented |
Instance Variable | _waiters |
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 |
overrides
ganeti.locking._BaseCondition.__init__
overridden in
ganeti.locking._PipeConditionWithMode
Initializes this class.
overrides
ganeti.locking._BaseCondition.__slots__
overridden in
ganeti.locking._PipeConditionWithMode
Undocumented