BloombergLP::bslmt::QLockGuard::lock

lock overloads

Synopses

Declared in <bslmt_qlock.h>

Acquire a lock on the associated QLock object. If the lock is not free, block until it can be acquired. The behavior is undefined if the calling thread already owns the lock on the QLock.

void
lock();
» more...

Associate this guard with the specified qlock and acquire the lock. If the lock is not free, block until it can be acquired. The behavior is undefined if the calling thread already owns the lock on qlock or if this object is in the locked state.

void
lock(QLock* qlock);
» more...