Attempt to acquire a lock on this mutex without blocking.
Synopsis
Declared in <bslmt_mutex.h>
int
tryLock();
Description
Attempt to acquire a lock on this mutex object. Return 0 on success, and a non‐zero value if this object is already locked by a different thread. The behavior is undefined if the calling thread already owns the lock on this mutex, and may result in deadlock.
Return Value
0 on success, and a non‐zero value if already locked
Created with MrDocs