Extracted from Pike v8.0 release 28 as of 2015-08-03.
   

Method Thread.Mutex()->trylock()


Method trylock

MutexKey trylock()
MutexKey trylock(int type)

Description

This function performs the same operation as lock(), but if the mutex is already locked, it will return zero instead of sleeping until it's unlocked.

See also

lock()