Atomic unsigned integer with sequentially consistent operations by default.
Synopsis
Declared in <bsls_atomic.h>
class AtomicUint;
Description
This class implements an atomic unsigned integer, which supports common unsigned integer 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 |
|
Atomically add the specified |
|
Atomically add the specified |
|
Atomically add 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. |
|
Increment operators |
|
Atomically add the specified |
|
Decrement operators |
|
Atomically subtract the specified |
|
Atomically assign the specified |
|
Atomically assign the specified |
|
Atomically assign the specified |
|
Atomically subtract the specified |
|
Atomically subtract the specified |
|
Atomically subtract 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