BloombergLP::bslmt::MeteredMutex::tryLock

Attempt to acquire the lock on this metered mutex. Return 0 on success, and a non-zero value if this mutex is already locked, or if an error occurs. Update the wait and hold time appropriately. The behavior is undefined if the calling thread already owns the lock.

Synopsis

Declared in <bslmt_meteredmutex.h>

int
tryLock();