Package buildbot :: Module locks :: Class LockAccess
[frames] | no frames]

Class LockAccess

source code

util.ComparableMixin --+
                       |
                      LockAccess

I am an object representing a way to access a lock.

Instance Methods
 
__init__(self, lockid, mode) source code

Inherited from util.ComparableMixin: __cmp__, __hash__, __providedBy__

Class Variables
  compare_attrs = ['lockid', 'mode']

Inherited from util.ComparableMixin: __implemented__, __provides__

Method Details

__init__(self, lockid, mode)
(Constructor)

source code 
Parameters:
  • lockid (A MasterLock or SlaveLock instance.) - LockId instance that should be accessed.
  • mode (A string, either 'counting' or 'exclusive'.) - Mode of accessing the lock.