Attempt to acquire the lock on this metered mutex.

Synopsis

Declared in <bslmt_meteredmutex.h>

int
tryLock();

Description

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.

Return Value

0 on success, and a non‐zero value otherwise

Created with MrDocs