|
BDE 4.14.0 Production release
|
#include <bsls_atomicoperations_default.h>
Public Types | |
| typedef Atomic_TypeTraits< IMP > | AtomicTypes |
Static Public Member Functions | |
| static unsigned int | getUint (typename AtomicTypes::Uint const *atomicUint) |
| static unsigned int | getUintAcquire (typename AtomicTypes::Uint const *atomicUint) |
| static unsigned int | getUintRelaxed (typename AtomicTypes::Uint const *atomicUint) |
| static void | initUint (typename AtomicTypes::Uint *atomicUint, unsigned int initialValue=0) |
| static void | setUint (typename AtomicTypes::Uint *atomicUint, unsigned int value) |
| static void | setUintRelaxed (typename AtomicTypes::Uint *atomicUint, unsigned int value) |
| static void | setUintRelease (typename AtomicTypes::Uint *atomicUint, unsigned int value) |
| static unsigned int | swapUint (typename AtomicTypes::Uint *atomicUint, unsigned int swapValue) |
| static unsigned int | swapUintAcqRel (typename AtomicTypes::Uint *atomicUint, unsigned int swapValue) |
| static unsigned int | testAndSwapUint (typename AtomicTypes::Uint *atomicUint, unsigned int compareValue, unsigned int swapValue) |
| static unsigned int | testAndSwapUintAcqRel (typename AtomicTypes::Uint *atomicUint, unsigned int compareValue, unsigned int swapValue) |
| static void | addUint (typename AtomicTypes::Uint *atomicUint, unsigned int value) |
| static void | addUintAcqRel (typename AtomicTypes::Uint *atomicUint, unsigned int value) |
| static void | addUintRelaxed (typename AtomicTypes::Uint *atomicUint, unsigned int value) |
| static unsigned int | addUintNv (typename AtomicTypes::Uint *atomicUint, unsigned int value) |
| static unsigned int | addUintNvAcqRel (typename AtomicTypes::Uint *atomicUint, unsigned int value) |
| static unsigned int | addUintNvRelaxed (typename AtomicTypes::Uint *atomicUint, unsigned int value) |
| static void | decrementUint (typename AtomicTypes::Uint *atomicUint) |
| static void | decrementUintAcqRel (typename AtomicTypes::Uint *atomicUint) |
| static unsigned int | decrementUintNv (typename AtomicTypes::Uint *atomicUint) |
| static unsigned int | decrementUintNvAcqRel (typename AtomicTypes::Uint *atomicUint) |
| static void | incrementUint (typename AtomicTypes::Uint *atomicUint) |
| static void | incrementUintAcqRel (typename AtomicTypes::Uint *atomicUint) |
| static unsigned int | incrementUintNv (typename AtomicTypes::Uint *atomicUint) |
| static unsigned int | incrementUintNvAcqRel (typename AtomicTypes::Uint *atomicUint) |
| static unsigned int | subtractUintNv (typename AtomicTypes::Uint *atomicUint, unsigned int value) |
| static unsigned int | subtractUintNvAcqRel (typename AtomicTypes::Uint *atomicUint, unsigned int value) |
| static unsigned int | subtractUintNvRelaxed (typename AtomicTypes::Uint *atomicUint, unsigned int value) |
This class provides default implementations of non-essential atomic operations for the 32-bit unsigned integer type independent on any specific platform. It also provides prototypes for the atomic operations for the 32-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 32-bit unsigned integer type.
Note that AtomicOperations_DefaultUint is implemented in terms of the following atomic operations on the integer type that must be provided by the IMP template parameter.
| typedef Atomic_TypeTraits<IMP> bsls::AtomicOperations_DefaultUint< IMP >::AtomicTypes |
|
inlinestatic |
Atomically add to the specified atomicUint the specified value, providing the sequential consistency memory ordering guarantee.
|
inlinestatic |
Atomically add to the specified atomicUint the specified value, providing the acquire/release memory ordering guarantee.
|
inlinestatic |
Atomically add to the specified atomicUint the specified value and return the resulting value, providing the sequential consistency memory ordering guarantee.
|
inlinestatic |
Atomically add to the specified atomicUint the specified value and return the resulting value, providing the acquire/release memory ordering guarantee.
|
inlinestatic |
Atomically add to the specified atomicUint the specified value and return the resulting value, without providing any memory ordering guarantees.
|
inlinestatic |
Atomically add to the specified atomicUint the specified value, without providing any memory ordering guarantees.
|
inlinestatic |
Atomically decrement the value of the specified atomicUint by 1, providing the sequential consistency memory ordering guarantee.
|
inlinestatic |
Atomically decrement the value of the specified atomicUint by 1, providing the acquire/release memory ordering guarantee.
|
inlinestatic |
Atomically decrement the specified atomicUint by 1 and return the resulting value, providing the sequential consistency memory ordering guarantee.
|
inlinestatic |
Atomically decrement the specified atomicUint by 1 and return the resulting value, providing the acquire/release memory ordering guarantee.
|
inlinestatic |
Atomically retrieve the value of the specified atomicUint, providing the sequential consistency memory ordering guarantee.
|
inlinestatic |
Atomically retrieve the value of the specified atomicUint, providing the acquire memory ordering guarantee.
|
inlinestatic |
Atomically retrieve the value of the specified atomicUint, without providing any memory ordering guarantees.
|
inlinestatic |
Atomically increment the value of the specified atomicUint by 1, providing the sequential consistency memory ordering guarantee.
|
inlinestatic |
Atomically increment the value of the specified atomicUint by 1, providing the acquire/release memory ordering guarantee.
|
inlinestatic |
Atomically increment the specified atomicUint by 1 and return the resulting value, providing the sequential consistency memory ordering guarantee.
|
inlinestatic |
Atomically increment the specified atomicUint by 1 and return the resulting value, providing the acquire/release memory ordering guarantee.
|
inlinestatic |
Initialize the specified atomicUint and set its value to the optionally specified initialValue.
|
inlinestatic |
Atomically set the value of the specified atomicUint to the specified value, providing the sequential consistency memory ordering guarantee.
|
inlinestatic |
Atomically set the value of the specified atomicUint to the specified value, without providing any memory ordering guarantees.
|
inlinestatic |
Atomically set the value of the specified atomicUint to the specified value, providing the release memory ordering guarantee.
|
inlinestatic |
Atomically subtract from the specified atomicUint the specified value and return the resulting value, providing the sequential consistency memory ordering guarantee.
|
inlinestatic |
Atomically subtract from the specified atomicUint the specified value and return the resulting value, providing the acquire/release memory ordering guarantee.
|
inlinestatic |
Atomically subtract from the specified atomicUint the specified value and return the resulting value, without providing any memory ordering guarantees.
|
inlinestatic |
Atomically set the value of the specified atomicUint to the specified swapValue, and return its previous value, providing the sequential consistency memory ordering guarantee.
|
inlinestatic |
Atomically set the value of the specified atomicUint to the specified swapValue, and return its previous value, providing the acquire/release memory ordering guarantee.
|
inlinestatic |
Conditionally set the value of the specified atomicUint to the specified swapValue if and only if the value of atomicUint equals the value of the specified compareValue, and return the initial value of atomicUint, providing the sequential consistency memory ordering guarantee. The whole operation is performed atomically.
|
inlinestatic |
Conditionally set the value of the specified atomicUint to the specified swapValue if and only if the value of atomicInt equals the value of the specified compareValue, and return the initial value of atomicUint, providing the acquire/release memory ordering guarantee. The whole operation is performed atomically.