MutexKey trylock() MutexKey trylock(int type)
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.
lock()