Quick Links:

bal | bbl | bdl | bsl

Public Member Functions | Public Attributes

bslmt::QLock Struct Reference

#include <bslmt_qlock.h>

List of all members.

Public Member Functions

void initialize ()
bool isLocked () const

Public Attributes

bsls::AtomicOperations::AtomicTypes::Pointer d_guardQueueTail

Detailed 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;

See Component bslmt_qlock


Member Function Documentation

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.


Member Data Documentation

bsls::AtomicOperations::AtomicTypes::Pointer bslmt::QLock::d_guardQueueTail

The documentation for this struct was generated from the following file: