Small, statically‐initializable mutex for serialized resource access.
Synopsis
Declared in <bslmt_qlock.h>
struct QLock;
Description
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; `
Member Functions
Name |
Description |
Set this lock into the initial unlocked state. |
|
Return |
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