Package ganeti :: Module locking :: Class _SingleNotifyPipeConditionWaiter
[hide private]
[frames] | no frames]

Class _SingleNotifyPipeConditionWaiter

source code


Helper class for SingleNotifyPipeCondition

Instance Methods [hide private]
 
__init__(self, poller, fd)
Constructor for _SingleNotifyPipeConditionWaiter
source code
 
__call__(self, timeout)
Wait for something to happen on the pipe.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, poller, fd)
(Constructor)

source code 

Constructor for _SingleNotifyPipeConditionWaiter

Parameters:
  • poller (select.poll) - Poller object
  • fd (int) - File descriptor to wait for
Overrides: object.__init__

__call__(self, timeout)
(Call operator)

source code 

Wait for something to happen on the pipe.

Parameters:
  • timeout (float or None) - Timeout for waiting (can be None)