This class implements an atomic boolean, which supports common boolean operations in a way that is guaranteed to be atomic. Operations on objects of this class provide the sequential consistency memory ordering guarantee unless explicitly qualified with a less strict consistency guarantee suffix (i.e., Acquire, Release, AcqRel or Relaxed).
Synopsis
Declared in <bsls_atomic.h>
class AtomicBool;
Member Functions
Name |
Description |
|
Constructors |
Atomically assign the specified |
|
Return the current value of this object. |
|
Return the current value of this object, providing the acquire memory ordering guarantee. |
|
Return the current value of this object, providing the relaxed memory ordering guarantee. |
|
Atomically assign the specified |
|
Atomically assign the specified |
|
Atomically assign the specified |
|
Atomically set the value of this object to the specified |
|
Atomically set the value of this object to the specified |
|
Compare the value of this object to the specified |
|
Compare the value of this object to the specified |
|
Return the current value of this object. |
Created with MrDocs