Home | Trees | Indices | Help |
---|
|
object --+ | semaphore
Semaphore lock object.
The constructor takes one parameter, the value to start the semaphore with.
|
|||
|
|||
|
|||
|
|||
a new object with type S, a subtype of T |
|
||
|
|||
|
|||
Inherited from |
|
|||
_waiting : A fifo of (value, co) tuples of coroutines waiting for the semaphore. |
|||
avail : The current value of the semaphore. |
|
|||
Inherited from |
|
|
|
Acquire a number of resource elements from the semaphore. This will subtract the given value from the semaphore. This will block if the requested number of resource elements are not available (if the value would go negative).
|
|
|
avail: The current value of the semaphore. Also available via __int__. |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Feb 16 18:06:44 2012 | http://epydoc.sourceforge.net |