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.

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

Parameters

Name

Description

qlock

QLock with which to associate this guard

doLock

if true (the default), acquire the lock on construction

Created with MrDocs