This class implements an atomic pointer to a parameterized TYPE, which supports common pointer 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>
template<class TYPE>
class AtomicPointer;
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. |
|
Return a reference to the value currently pointed to by this object. The behavior is undefined if this pointer has a value of 0. |
|
Return the current value of this object. |
|
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