method

try_lock

v2_4_6 - Show latest stable - Class: Thread::Mutex
try_lock()
public

Attempts to obtain the lock and returns immediately. Returns true if the lock was granted.