Class Thread.MutexKey
- Description
Objects of this class are returned by Mutex()->lock() and Mutex()->trylock(). They are also passed as arguments to Condition()->wait().
As long as they are held, the corresponding mutex will be locked.
The corresponding mutex will be unlocked when the object is destructed (eg by not having any references left).
- See also
- Variable dec_locks
protected
function
(:void
) Thread.MutexKey.dec_locks
- Method create
Thread.MutexKey Thread.MutexKey(
function
(:void
)dec_locks
)