Atomic boolean providing sequentially consistent operations by default.
Synopsis
Declared in <bsls_atomic.h>
class AtomicBool;
Description
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).
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 |
|
Conditionally swap this value if it equals |
|
Conditionally swap this value with acquire/release ordering. |
|
Return the current value of this object. |
Created with MrDocs