Class t.i.d.DeferredSemaphore(_ConcurrencyPrimitive):

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

A semaphore for event driven systems.

Split Table into Classes Show Methods in One Table

Line # Kind Name Docs
906 Method __init__ Undocumented
911 Method acquire Attempt to acquire the token.
925 Method release Release the token.

Inherited from _ConcurrencyPrimitive:

Line # Kind Name Docs
832 Method run Acquire, run, release.
828 Method _releaseAndReturn Undocumented
Line # Kind Name Docs
906 Method __init__ Undocumented
911 Method acquire Attempt to acquire the token.
925 Method release Release the token.
832 Method run Acquire, run, release.
828 Method _releaseAndReturn Undocumented
def __init__(self, tokens): (source)
Undocumented
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 2008-10-26 16:12:37.