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