t.i.d.DeferredLock(_ConcurrencyPrimitive) : class documentation

Part of twisted.internet.defer View Source View In Hierarchy

A lock for event driven systems.
Instance VariableslockedTrue when this Lock has been acquired, false at all other times. Do not change this value, but it is useful to examine for the equivalent of a "non-blocking" acquisition.
Method acquire Attempt to acquire the lock.
Method release Release the lock.

Inherited from _ConcurrencyPrimitive:

Method __init__ Undocumented
Method run Acquire, run, release.
Method _releaseAndReturn Undocumented
def acquire(self): (source)
Attempt to acquire the lock.
Returnsa Deferred which fires on lock acquisition.
def release(self): (source)

Release the lock.

Should be called by whomever did the acquire() when the shared resource is free.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:07:41.