Extracted from Pike v7.3 release 16 at 2002-03-05.
pike.roxen.com
[Top]
Thread
Thread.Mutex

Method Thread.Mutex()->trylock()


Method trylock

object(MutexKey) Thread.Mutex()->trylock()
object(MutexKey) Thread.Mutex()->trylock(int type)

Description

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

See also

Thread.Mutex.lock