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

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

A semaphore for event driven systems.
Method __init__ Undocumented
Method acquire Attempt to acquire the token.
Method release Release the token.

Inherited from _ConcurrencyPrimitive:

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

Release the token.

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