An efficient statically‐initializable synchronization primitive that enables serialized access to shared resources. Objects of this class can only be manipulated through the use of a QLockGuard. The following idiom is used to initialize objects of type QLock: ` QLock mylock = BSLMT_QLOCK_INITIALIZER; `
Synopsis
Declared in <bslmt_qlock.h>
struct QLock;
Member Functions
Name |
Description |
Set this lock into the initial unlocked state. |
|
Return true if this lock is locked and false otherwise. |
Data Members
Name |
Description |
Pointer to the last guard in the queue of guards waiting for this lock, or 0 if the lock is unlocked. |
Created with MrDocs