Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Thread
Thread.Mutex

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()