Default atomic operations for a generic 64‐bit platform.

Synopsis

Declared in <bsls_atomicoperations_default.h>

Description

This class provides default implementations of non‐essential atomic operations for the 32‐bit integer, 64‐bit integer, the 32‐bit unsigned integer, 64‐bit unsigned integer and 64‐bit pointer type for a generic 64‐bit platform.

Base Classes

Name

Description

AtomicOperations_DefaultInt<IMP>

Default implementations of non‐essential 32‐bit integer atomic operations.

AtomicOperations_DefaultInt64<IMP>

Default implementations of non‐essential 64‐bit integer atomic operations.

AtomicOperations_DefaultUint<IMP>

Default implementations of non‐essential 32‐bit unsigned atomic operations.

AtomicOperations_DefaultUint64<IMP>

Default implementations of non‐essential 64‐bit unsigned atomic operations.

AtomicOperations_DefaultPointer64<IMP>

Default implementations of non‐essential 64‐bit pointer atomic operations.

Type Aliases

Name

Description

AtomicTypes

This typedef is an alias to Atomic_TypeTraits<IMP>.

Static Member Functions

Name

Description

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.

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.

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.

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.

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 value from atomicInt and return the result.

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 value from atomicInt and return the result.

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 value from atomicUint and return the result.

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 value from atomicUint and return the result.

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.

swapInt64AcqRel

Atomically swap atomicInt with acquire/release ordering.

swapIntAcqRel

Atomically swap atomicInt with acquire/release ordering.

swapPtr

Atomically swap atomicPtr and return its previous value.

swapPtrAcqRel

Atomically swap atomicPtr with acquire/release ordering.

swapUint

Atomically swap atomicUint and return its previous value.

swapUint64

Atomically swap atomicUint and return its previous value.

swapUint64AcqRel

Atomically swap atomicUint with acquire/release ordering.

swapUintAcqRel

Atomically swap atomicUint with acquire/release ordering.

testAndSwapInt64AcqRel

Conditionally swap atomicInt with acquire/release ordering.

testAndSwapIntAcqRel

Conditionally swap atomicInt with acquire/release ordering.

testAndSwapPtr

Conditionally swap atomicPtr if it equals compareValue.

testAndSwapPtrAcqRel

Conditionally swap atomicPtr with acquire/release ordering.

testAndSwapUint

Conditionally swap atomicUint if it equals compareValue.

testAndSwapUint64

Conditionally swap atomicUint if it equals compareValue.

testAndSwapUint64AcqRel

Conditionally swap atomicUint with acquire/release ordering.

testAndSwapUintAcqRel

Conditionally swap atomicUint with acquire/release ordering.

Derived Classes

Name

Description

AtomicOperations_ALL_ALL_ClangIntrinsics

Platform‐specific atomic operations using clang __c11_atomic_* intrinsics.

AtomicOperations_X64_ALL_GCC

Created with MrDocs