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; `
Declared in <bslmt_qlock.h>
struct QLock;
| Name | Description |
|---|---|
initialize | Set this lock into the initial unlocked state. |
isLocked | Return true if this lock is locked and false otherwise. |
| Name | Description |
|---|---|
d_guardQueueTail | Pointer to the last guard in the queue of guards waiting for this lock, or 0 if the lock is unlocked. |