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

Class _BaseCondition

source code


Base class containing common code for conditions.

Some of this code is taken from python's threading module.

Instance Methods [hide private]
 
__init__(self, lock)
Constructor for _BaseCondition.
source code
 
_base_is_owned(self)
Check whether lock is owned by current thread.
source code
 
_base_release_save(self) source code
 
_base_acquire_restore(self, _) source code
 
_check_owned(self)
Raise an exception if the current thread doesn't own the lock.
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, lock)
(Constructor)

source code 

Constructor for _BaseCondition.

Parameters:
  • lock (threading.Lock) - condition base lock
Overrides: object.__init__