BloombergLP::bslmt::QLockGuard::QLockGuard

Constructors

Synopses

Declared in <bslmt_qlock.h>

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

QLockGuard();
» more...

Create a guard associated with the specified qlock.

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

Parameters

NameDescription
qlockQLock with which to associate this guard
doLockif true (the default), acquire the lock on construction