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.

Synopsis

Declared in <bslmt_mutex.h>

int
tryLock();

Created with MrDocs