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

Class MasterLock

ComparableMixin --+
                  |
                 MasterLock


I am a semaphore that limits the number of simultaneous actions.

Builds and BuildSteps can declare that they wish to claim me as they run. Only a limited number of such builds or steps will be able to run simultaneously. By default this number is one, but my maxCount parameter can be raised to allow two or three or more operations to happen at the same time.

Use this to protect a resource that is shared among all builders and all slaves, for example to limit the load on a common SVN repository.
Method Summary
  __init__(self, name, maxCount)
    Inherited from ComparableMixin
  __cmp__(self, them)
  __hash__(self)

Class Variable Summary
list compare_attrs = ['name', 'maxCount']
classobj lockClass = buildbot.locks.RealMasterLock
    Inherited from ComparableMixin
Implements __implemented__ = <implementedBy buildbot.util.Comparabl...
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...

Class Variable Details

compare_attrs

Type:
list
Value:
['name', 'maxCount']                                                   

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