BloombergLP::bslmt::QLockGuard::tryLock

Attempt to acquire a lock on the associated QLock object. Return 0 on success, a positive value of the associated QLock object is already locked, or a negative value if an error occurs.

Synopsis

Declared in <bslmt_qlock.h>

int
tryLock();