Quick Links: |
#include <bslmt_qlock.h>
Public Member Functions | |
void | initialize () |
bool | isLocked () const |
Public Attributes | |
bsls::AtomicOperations::AtomicTypes::Pointer | d_guardQueueTail |
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;
void bslmt::QLock::initialize | ( | ) |
Set this lock into the initial unlocked state.
bool bslmt::QLock::isLocked | ( | ) | const |
Return true if this lock is locked and false otherwise.
bsls::AtomicOperations::AtomicTypes::Pointer bslmt::QLock::d_guardQueueTail |