| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
mutex
Mutual Exclusion lock object.
A single thread may acquire the mutex multiple times, but it must release the lock an equal number of times.
|
|||
|
|||
|
|||
| a new object with type S, a subtype of T |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
_locked : Count of how many locks on the mutex are currently held. |
|||
|
_owner : The coroutine object that owns the lock (None if no owner). |
|||
|
_waiting : A fifo of coroutine objects waiting for the lock. |
|||
|
|||
|
Inherited from |
|||
|
|||
|
|
|
Lock the mutex. This will block if another coro already owns the mutex. A coro thread may lock the mutex multiple times. It must call unlock the same number of times to release it.
|
|
|
Unlock the mutex. The thread unlocking must be the thread that initially locked it.
|
|
|||
_owner: The coroutine object that owns the lock (None if no owner). (C only.) |
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Feb 16 18:06:44 2012 | http://epydoc.sourceforge.net |