Default implementations of non‐essential 64‐bit unsigned atomic operations.
Synopsis
Declared in <bsls_atomicoperations_default.h>
template<class IMP>
struct AtomicOperations_DefaultUint64;
Description
This class provides default implementations of non‐essential atomic operations for the 64‐bit unsigned integer type independent on any specific platform. It also provides prototypes for the atomic operations for the 64‐bit unsigned integer type that have to be implemented separately for each specific platform. These platform‐independent and platform‐specific atomic operations together form a full set of atomic operations for the 64‐bit unsigned integer type.
Note that AtomicOperations_DefaultUint64 is implemented in terms of the following atomic operations on the Int64 type that must be provided by the IMP template parameter. ` static Types::Int64 getInt64( typename AtomicTypes::Int64 const *atomicInt); static Types::Int64 getInt64Relaxed( typename AtomicTypes::Int64 const *atomicInt); static Types::Int64 getInt64Acquire( typename AtomicTypes::Int64 const *atomicInt); static void setInt64(typename AtomicTypes::Int64 *atomicInt, Types::Int64 value); static void setInt64Relaxed(typename AtomicTypes::Int64 *atomicInt, Types::Int64 value); static void setInt64Release(typename AtomicTypes::Int64 *atomicInt, Types::Int64 value); static Types::Int64 swapInt64(typename AtomicTypes::Int64 *atomicInt, Types::Int64 swapValue); static Types::Int64 swapInt64AcqRel( typename AtomicTypes::Int64 *atomicInt, Types::Int64 swapValue); static Types::Int64 testAndSwapInt64( typename AtomicTypes::Int64 *atomicInt, Types::Int64 compareValue, Types::Int64 swapValue); static Types::Int64 testAndSwapInt64AcqRel( typename AtomicTypes::Int64 *atomicInt, Types::Int64 compareValue, Types::Int64 swapValue); `
Type Aliases
Name |
Description |
This |
Static Member Functions
Name |
Description |
Atomically add to the specified |
|
Atomically add to the specified |
|
Atomically add to the specified |
|
Atomically add to the specified |
|
Atomically add to the specified |
|
Atomically add to the specified |
|
Atomically decrement the specified |
|
Atomically decrement the specified |
|
Atomically decrement the specified |
|
Atomically decrement the specified |
|
Atomically retrieve the value of the specified |
|
Atomically retrieve the value of the specified |
|
Atomically retrieve the value of the specified |
|
Atomically increment the value of the specified |
|
Atomically increment the value of the specified |
|
Atomically increment the specified |
|
Atomically increment the specified |
|
Initialize the specified |
|
Atomically set the value of the specified |
|
Atomically set the value of the specified |
|
Atomically set the value of the specified |
|
Atomically subtract |
|
Atomically subtract from the specified |
|
Atomically subtract from the specified |
|
Atomically swap |
|
Atomically swap |
|
Conditionally swap |
|
Conditionally swap |
Derived Classes
Name |
Description |
Default atomic operations for a generic 32‐bit platform. |
|
Default atomic operations for a generic 64‐bit platform. |
Created with MrDocs