Constructors
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...
| Name | Description |
|---|---|
| qlock | QLock with which to associate this guard |
| doLock | if true (the default), acquire the lock on construction |