Constructors

Synopses

Declared in <bslmt_qlock.h>

Create a guard in the unlocked state, not associated with any QLock objects.

Create a guard associated with the specified qlock. Acquire the lock unless the (optionally) specified doLock is false. If the lock is not free, block until it can be acquired.

explicit
QLockGuard(
    QLock* qlock,
    bool doLock = true);

Created with MrDocs