BloombergLP::bsls::AtomicOperations

AtomicOperations provides a namespace for a suite of atomic operations on the following types as defined by the AtomicTypes typedef: integer - AtomicTypes::Int, 64bit integer - AtomicTypes::Int64, pointer - AtomicTypes::Pointer.

Synopsis

Declared in <bsls_atomicoperations.h>

struct AtomicOperations;

Type Aliases

NameDescription
AtomicTypes Alias for platform-specific atomic integer, pointer, and Int64 types.
Imp Platform-specific atomic operations implementation.

Static Member Functions

NameDescription
addInt Atomically add to the specified atomicInt the specified value, providing the sequential consistency memory ordering guarantee.
addInt64 Atomically add to the specified atomicInt the specified value, providing the sequential consistency memory ordering guarantee.
addInt64AcqRel Atomically add to the specified atomicInt the specified value, providing the acquire/release memory ordering guarantee.
addInt64Nv Atomically add to the specified atomicInt the specified value and return the resulting value, providing the sequential consistency memory ordering guarantee.
addInt64NvAcqRel Atomically add to the specified atomicInt the specified value and return the resulting value, providing the acquire/release memory ordering guarantee.
addInt64NvRelaxed Atomically add to the specified atomicInt the specified value and return the resulting value, without providing any memory ordering guarantees.
addInt64Relaxed Atomically add to the specified atomicInt the specified value, without providing any memory ordering guarantees.
addIntAcqRel Atomically add to the specified atomicInt the specified value, providing the acquire/release memory ordering guarantee.
addIntNv Atomically add to the specified atomicInt the specified value and return the resulting value, providing the sequential consistency memory ordering guarantee.
addIntNvAcqRel Atomically add to the specified atomicInt the specified value and return the resulting value, providing the acquire/release memory ordering guarantee.
addIntNvRelaxed Atomically add to the specified atomicInt the specified value and return the resulting value, without providing any memory ordering guarantees.
addIntRelaxed Atomically add to the specified atomicInt the specified value, without providing any memory ordering guarantees.
addUint Atomically add to the specified atomicUint the specified value, providing the sequential consistency memory ordering guarantee.
addUint64 Atomically add to the specified atomicUint the specified value, providing the sequential consistency memory ordering guarantee.
addUint64AcqRel Atomically add to the specified atomicUint the specified value, providing the acquire/release memory ordering guarantee.
addUint64Nv Atomically add to the specified atomicUint the specified value and return the resulting value, providing the sequential consistency memory ordering guarantee.
addUint64NvAcqRel Atomically add to the specified atomicUint the specified value and return the resulting value, providing the acquire/release memory ordering guarantee.
addUint64NvRelaxed Atomically add to the specified atomicUint the specified value and return the resulting value, without providing any memory ordering guarantees.
addUint64Relaxed Atomically add to the specified atomicUint the specified value, without providing any memory ordering guarantees.
addUintAcqRel Atomically add to the specified atomicUint the specified value, providing the acquire/release memory ordering guarantee.
addUintNv Atomically add to the specified atomicUint the specified value and return the resulting value, providing the sequential consistency memory ordering guarantee.
addUintNvAcqRel Atomically add to the specified atomicUint the specified value and return the resulting value, providing the acquire/release memory ordering guarantee.
addUintNvRelaxed Atomically add to the specified atomicUint the specified value and return the resulting value, without providing any memory ordering guarantees.
addUintRelaxed Atomically add to the specified atomicUint the specified value, without providing any memory ordering guarantees.
decrementInt Atomically decrement the value of the specified atomicInt by 1, providing the sequential consistency memory ordering guarantee.
decrementInt64 Atomically decrement the specified atomicInt by 1, providing the sequential consistency memory ordering guarantee.
decrementInt64AcqRel Atomically decrement the specified atomicInt by 1, providing the acquire/release memory ordering guarantee.
decrementInt64Nv Atomically decrement the specified atomicInt by 1 and return the resulting value, providing the sequential consistency memory ordering guarantee.
decrementInt64NvAcqRel Atomically decrement the specified atomicInt by 1 and return the resulting value, providing the acquire/release memory ordering guarantee.
decrementIntAcqRel Atomically decrement the value of the specified atomicInt by 1, providing the acquire/release memory ordering guarantee.
decrementIntNv Atomically decrement the specified atomicInt by 1 and return the resulting value, providing the sequential consistency memory ordering guarantee.
decrementIntNvAcqRel Atomically decrement the specified atomicInt by 1 and return the resulting value, providing the acquire/release memory ordering guarantee.
decrementUint Atomically decrement the value of the specified atomicUint by 1, providing the sequential consistency memory ordering guarantee.
decrementUint64 Atomically decrement the specified atomicUint by 1, providing the sequential consistency memory ordering guarantee.
decrementUint64AcqRel Atomically decrement the specified atomicUint by 1, providing the acquire/release memory ordering guarantee.
decrementUint64Nv Atomically decrement the specified atomicUint by 1 and return the resulting value, providing the sequential consistency memory ordering guarantee.
decrementUint64NvAcqRel Atomically decrement the specified atomicUint by 1 and return the resulting value, providing the acquire/release memory ordering guarantee.
decrementUintAcqRel Atomically decrement the value of the specified atomicUint by 1, providing the acquire/release memory ordering guarantee.
decrementUintNv Atomically decrement the specified atomicUint by 1 and return the resulting value, providing the sequential consistency memory ordering guarantee.
decrementUintNvAcqRel Atomically decrement the specified atomicUint by 1 and return the resulting value, providing the acquire/release memory ordering guarantee.
getInt Atomically retrieve the value of the specified atomicInt, providing the sequential consistency memory ordering guarantee.
getInt64 Atomically retrieve the value of the specified atomicInt, providing the sequential consistency memory ordering guarantee.
getInt64Acquire Atomically retrieve the value of the specified atomicInt, providing the acquire memory ordering guarantee.
getInt64Relaxed Atomically retrieve the value of the specified atomicInt, without providing any memory ordering guarantees.
getIntAcquire Atomically retrieve the value of the specified atomicInt, providing the acquire memory ordering guarantee.
getIntRelaxed Atomically retrieve the value of the specified atomicInt, without providing any memory ordering guarantees.
getPtr Atomically retrieve the value of the specified atomicPtr, providing the sequential consistency memory ordering guarantee.
getPtrAcquire Atomically retrieve the value of the specified atomicPtr, providing the acquire memory ordering guarantee.
getPtrRelaxed Atomically retrieve the value of the specified atomicPtr, without providing any memory ordering guarantees.
getUint Atomically retrieve the value of the specified atomicUint, providing the sequential consistency memory ordering guarantee.
getUint64 Atomically retrieve the value of the specified atomicUint, providing the sequential consistency memory ordering guarantee.
getUint64Acquire Atomically retrieve the value of the specified atomicUint, providing the acquire memory ordering guarantee.
getUint64Relaxed Atomically retrieve the value of the specified atomicUint, without providing any memory ordering guarantees.
getUintAcquire Atomically retrieve the value of the specified atomicUint, providing the acquire memory ordering guarantee.
getUintRelaxed Atomically retrieve the value of the specified atomicUint, without providing any memory ordering guarantees.
incrementInt Atomically increment the value of the specified atomicInt by 1, providing the sequential consistency memory ordering guarantee.
incrementInt64 Atomically increment the value of the specified atomicInt by 1, providing the sequential consistency memory ordering guarantee.
incrementInt64AcqRel Atomically increment the value of the specified atomicInt by 1, providing the acquire/release memory ordering guarantee.
incrementInt64Nv Atomically increment the specified atomicInt by 1 and return the resulting value, providing the sequential consistency memory ordering guarantee.
incrementInt64NvAcqRel Atomically increment the specified atomicInt by 1 and return the resulting value, providing the acquire/release memory ordering guarantee.
incrementIntAcqRel Atomically increment the value of the specified atomicInt by 1, providing the acquire/release memory ordering guarantee.
incrementIntNv Atomically increment the specified atomicInt by 1 and return the resulting value, providing the sequential consistency memory ordering guarantee.
incrementIntNvAcqRel Atomically increment the specified atomicInt by 1 and return the resulting value, providing the acquire/release memory ordering guarantee.
incrementUint Atomically increment the value of the specified atomicUint by 1, providing the sequential consistency memory ordering guarantee.
incrementUint64 Atomically increment the value of the specified atomicUint by 1, providing the sequential consistency memory ordering guarantee.
incrementUint64AcqRel Atomically increment the value of the specified atomicUint by 1, providing the acquire/release memory ordering guarantee.
incrementUint64Nv Atomically increment the specified atomicUint by 1 and return the resulting value, providing the sequential consistency memory ordering guarantee.
incrementUint64NvAcqRel Atomically increment the specified atomicUint by 1 and return the resulting value, providing the acquire/release memory ordering guarantee.
incrementUintAcqRel Atomically increment the value of the specified atomicUint by 1, providing the acquire/release memory ordering guarantee.
incrementUintNv Atomically increment the specified atomicUint by 1 and return the resulting value, providing the sequential consistency memory ordering guarantee.
incrementUintNvAcqRel Atomically increment the specified atomicUint by 1 and return the resulting value, providing the acquire/release memory ordering guarantee.
initInt Initialize the specified atomicInt and set its value to the optionally specified initialValue.
initInt64 Initialize the specified atomicInt and set its value to the optionally specified initialValue.
initPointer Initialize the specified atomicPtr and set its value to the optionally specified initialValue.
initUint Initialize the specified atomicUint and set its value to the optionally specified initialValue.
initUint64 Initialize the specified atomicUint and set its value to the optionally specified initialValue.
setInt Atomically set the value of the specified atomicInt to the specified value, providing the sequential consistency memory ordering guarantee.
setInt64 Atomically set the value of the specified atomicInt to the specified value, providing the sequential consistency memory ordering guarantee.
setInt64Relaxed Atomically set the value of the specified atomicInt to the specified value, without providing any memory ordering guarantees.
setInt64Release Atomically set the value of the specified atomicInt to the specified value, providing the release memory ordering guarantee.
setIntRelaxed Atomically set the value of the specified atomicInt to the specified value, without providing any memory ordering guarantees.
setIntRelease Atomically set the value of the specified atomicInt to the specified value, providing the release memory ordering guarantee.
setPtr Atomically set the value of the specified atomicPtr to the specified value, providing the sequential consistency memory ordering guarantee.
setPtrRelaxed Atomically set the value of the specified atomicPtr to the specified value, without providing any memory ordering guarantees.
setPtrRelease Atomically set the value of the specified atomicPtr to the specified value, providing the release memory ordering guarantee.
setUint Atomically set the value of the specified atomicUint to the specified value, providing the sequential consistency memory ordering guarantee.
setUint64 Atomically set the value of the specified atomicUint to the specified value, providing the sequential consistency memory ordering guarantee.
setUint64Relaxed Atomically set the value of the specified atomicUint to the specified value, without providing any memory ordering guarantees.
setUint64Release Atomically set the value of the specified atomicUint to the specified value, providing the release memory ordering guarantee.
setUintRelaxed Atomically set the value of the specified atomicUint to the specified value, without providing any memory ordering guarantees.
setUintRelease Atomically set the value of the specified atomicUint to the specified value, providing the release memory ordering guarantee.
subtractInt64Nv Atomically subtract from the specified atomicInt the specified value and return the resulting value, providing the sequential consistency memory ordering guarantee.
subtractInt64NvAcqRel Atomically subtract from the specified atomicInt the specified value and return the resulting value, providing the acquire/release memory ordering guarantee.
subtractInt64NvRelaxed Atomically subtract from the specified atomicInt the specified value and return the resulting value, without providing any memory ordering guarantees.
subtractIntNv Atomically subtract from the specified atomicInt the specified value and return the resulting value, providing the sequential consistency memory ordering guarantee.
subtractIntNvAcqRel Atomically subtract from the specified atomicInt the specified value and return the resulting value, providing the acquire/release memory ordering guarantee.
subtractIntNvRelaxed Atomically subtract from the specified atomicInt the specified value and return the resulting value, without providing any memory ordering guarantees.
subtractUint64Nv Atomically subtract from the specified atomicUint the specified value and return the resulting value, providing the sequential consistency memory ordering guarantee.
subtractUint64NvAcqRel Atomically subtract from the specified atomicUint the specified value and return the resulting value, providing the acquire/release memory ordering guarantee.
subtractUint64NvRelaxed Atomically subtract from the specified atomicUint the specified value and return the resulting value, without providing any memory ordering guarantees.
subtractUintNv Atomically subtract from the specified atomicUint the specified value and return the resulting value, providing the sequential consistency memory ordering guarantee.
subtractUintNvAcqRel Atomically subtract from the specified atomicUint the specified value and return the resulting value, providing the acquire/release memory ordering guarantee.
subtractUintNvRelaxed Atomically subtract from the specified atomicUint the specified value and return the resulting value, without providing any memory ordering guarantees.
swapInt Atomically set the value of the specified atomicInt to the specified swapValue, and return its previous value, providing the sequential consistency memory ordering guarantee.
swapInt64 Atomically set the value of the specified atomicInt to the specified swapValue and return its previous value, providing the sequential consistency memory ordering guarantee.
swapInt64AcqRel Atomically set the value of the specified atomicInt to the specified swapValue and return its previous value, providing the acquire/release memory ordering guarantee.
swapIntAcqRel Atomically set the value of the specified atomicInt to the specified swapValue, and return its previous value, providing the acquire/release memory ordering guarantee.
swapPtr Atomically set the value of the specified atomicPtr to the specified swapValue, and return its previous value, providing the sequential consistency memory ordering guarantee.
swapPtrAcqRel Atomically set the value of the specified atomicPtr to the specified swapValue, and return its previous value, providing the acquire/release memory ordering guarantee.
swapUint Atomically set the value of the specified atomicUint to the specified swapValue, and return its previous value, providing the sequential consistency memory ordering guarantee.
swapUint64 Atomically set the value of the specified atomicUint to the specified swapValue and return its previous value, providing the sequential consistency memory ordering guarantee.
swapUint64AcqRel Atomically set the value of the specified atomicUint to the specified swapValue and return its previous value, providing the acquire/release memory ordering guarantee.
swapUintAcqRel Atomically set the value of the specified atomicUint to the specified swapValue, and return its previous value, providing the acquire/release memory ordering guarantee.
testAndSwapInt 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 sequential consistency memory ordering guarantee. The whole operation is performed atomically.
testAndSwapInt64 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 sequential consistency memory ordering guarantee. The whole operation is performed atomically.
testAndSwapInt64AcqRel 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.
testAndSwapIntAcqRel 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.
testAndSwapPtr Conditionally set the value of the specified atomicPtr to the specified swapValue if and only if the value of atomicPtr equals the value of the specified compareValue, and return the initial value of atomicPtr, providing the sequential consistency memory ordering guarantee. The whole operation is performed atomically.
testAndSwapPtrAcqRel Conditionally set the value of the specified atomicPtr to the specified swapValue if and only if the value of atomicPtr equals the value of the specified compareValue, and return the initial value of atomicPtr, providing the acquire/release memory ordering guarantee. The whole operation is performed atomically.
testAndSwapUint 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.
testAndSwapUint64 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.
testAndSwapUint64AcqRel 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 acquire/release memory ordering guarantee. The whole operation is performed atomically.
testAndSwapUintAcqRel 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.