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

Class BaseLock

Known Subclasses:
RealMasterLock

Method Summary
  __init__(self, name, maxCount)
  __repr__(self)
  claim(self, owner)
  isAvailable(self)
  release(self, owner)
  waitUntilMaybeAvailable(self, owner)
Fire when the lock *might* be available.

Class Variable Summary
str description = '<BaseLock>'

Method Details

waitUntilMaybeAvailable(self, owner)

Fire when the lock *might* be available. The caller will need to check with isAvailable() when the deferred fires. This loose form is used to avoid deadlocks. If we were interested in a stronger form, this would be named 'waitUntilAvailable', and the deferred would fire after the lock had been claimed.

Class Variable Details

description

Type:
str
Value:
'<BaseLock>'                                                           

Generated by Epydoc 2.1 on Sun Dec 10 22:04:44 2006 http://epydoc.sf.net