BDE 4.14.0 Production release
|
#include <bsls_atomicoperations_default.h>
Public Types | |
typedef Atomic_TypeTraits< IMP > | AtomicTypes |
Static Public Member Functions | |
static int | getIntAcquire (typename AtomicTypes::Int const *atomicInt) |
static int | getIntRelaxed (typename AtomicTypes::Int const *atomicInt) |
static void | initInt (typename AtomicTypes::Int *atomicInt, int initialValue=0) |
static void | setIntRelaxed (typename AtomicTypes::Int *atomicInt, int value) |
static void | setIntRelease (typename AtomicTypes::Int *atomicInt, int value) |
static int | swapIntAcqRel (typename AtomicTypes::Int *atomicInt, int swapValue) |
static int | testAndSwapIntAcqRel (typename AtomicTypes::Int *atomicInt, int compareValue, int swapValue) |
static void | addInt (typename AtomicTypes::Int *atomicInt, int value) |
static void | addIntAcqRel (typename AtomicTypes::Int *atomicInt, int value) |
static void | addIntRelaxed (typename AtomicTypes::Int *atomicInt, int value) |
static int | addIntNvAcqRel (typename AtomicTypes::Int *atomicInt, int value) |
static int | addIntNvRelaxed (typename AtomicTypes::Int *atomicInt, int value) |
static void | decrementInt (typename AtomicTypes::Int *atomicInt) |
static void | decrementIntAcqRel (typename AtomicTypes::Int *atomicInt) |
static int | decrementIntNv (typename AtomicTypes::Int *atomicInt) |
static int | decrementIntNvAcqRel (typename AtomicTypes::Int *atomicInt) |
static void | incrementInt (typename AtomicTypes::Int *atomicInt) |
static void | incrementIntAcqRel (typename AtomicTypes::Int *atomicInt) |
static int | incrementIntNv (typename AtomicTypes::Int *atomicInt) |
static int | incrementIntNvAcqRel (typename AtomicTypes::Int *atomicInt) |
static int | subtractIntNv (typename AtomicTypes::Int *atomicInt, int value) |
static int | subtractIntNvAcqRel (typename AtomicTypes::Int *atomicInt, int value) |
static int | subtractIntNvRelaxed (typename AtomicTypes::Int *atomicInt, int value) |
This class provides default implementations of non-essential atomic operations for the 32-bit integer type independent on any specific platform. It also provides prototypes for the atomic operations for the 32-bit 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 integer type.
typedef Atomic_TypeTraits<IMP> bsls::AtomicOperations_DefaultInt< IMP >::AtomicTypes |
|
inlinestatic |
Atomically add to the specified atomicInt
the specified value
, providing the sequential consistency memory ordering guarantee.
|
inlinestatic |
Atomically add to the specified atomicInt
the specified value
, providing the acquire/release memory ordering guarantee.
|
inlinestatic |
Atomically add to the specified atomicInt
the specified value
and return the resulting value, providing the acquire/release memory ordering guarantee.
|
inlinestatic |
Atomically add to the specified atomicInt
the specified value
and return the resulting value, without providing any memory ordering guarantees.
|
inlinestatic |
Atomically add to the specified atomicInt
the specified value
, without providing any memory ordering guarantees.
|
inlinestatic |
Atomically decrement the value of the specified atomicInt
by 1, providing the sequential consistency memory ordering guarantee.
|
inlinestatic |
Atomically decrement the value of the specified atomicInt
by 1, providing the acquire/release memory ordering guarantee.
|
inlinestatic |
Atomically decrement the specified atomicInt
by 1 and return the resulting value, providing the sequential consistency memory ordering guarantee.
|
inlinestatic |
Atomically decrement the specified atomicInt
by 1 and return the resulting value, providing the acquire/release memory ordering guarantee.
|
inlinestatic |
Atomically retrieve the value of the specified atomicInt
, providing the acquire memory ordering guarantee.
|
inlinestatic |
Atomically retrieve the value of the specified atomicInt
, without providing any memory ordering guarantees.
|
inlinestatic |
Atomically increment the value of the specified atomicInt
by 1, providing the sequential consistency memory ordering guarantee.
|
inlinestatic |
Atomically increment the value of the specified atomicInt
by 1, providing the acquire/release memory ordering guarantee.
|
inlinestatic |
Atomically increment the specified atomicInt
by 1 and return the resulting value, providing the sequential consistency memory ordering guarantee.
|
inlinestatic |
Atomically increment the specified atomicInt
by 1 and return the resulting value, providing the acquire/release memory ordering guarantee.
|
inlinestatic |
Initialize the specified atomicInt
and set its value to the optionally specified initialValue
.
|
inlinestatic |
Atomically set the value of the specified atomicInt
to the specified value
, without providing any memory ordering guarantees.
|
inlinestatic |
Atomically set the value of the specified atomicInt
to the specified value
, providing the release memory ordering guarantee.
|
inlinestatic |
Atomically subtract from the specified atomicInt
the specified value
and return the resulting value, providing the sequential consistency memory ordering guarantee.
|
inlinestatic |
Atomically subtract from the specified atomicInt
the specified value
and return the resulting value, providing the acquire/release memory ordering guarantee.
|
inlinestatic |
Atomically subtract from the specified atomicInt
the specified value
and return the resulting value, without providing any memory ordering guarantees.
|
inlinestatic |
Atomically set the value of the specified atomicInt
to the specified swapValue
, and return its previous value, providing the acquire/release memory ordering guarantee.
|
inlinestatic |
Conditionally set the value of the specified atomicInt
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 atomicInt
, providing the acquire/release memory ordering guarantee. The whole operation is performed atomically.