| Extracted from Pike v7.8 release 866 at 2016-04-05.

[Top]
Thread
Thread.MutexKey

# 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

  Mutex , Condition