Atomic

Atomic data like std::atomic

Constructors

this
this(T init)

Constructor

Alias This

load

Load the value from the atomic location with SC access

Members

Aliases

opAssign
alias opAssign = store

Store using SC access

Functions

cas
bool cas(T oldVal, T newVal)
casWeak
bool casWeak(T oldVal, T newVal)

Compare and swap

exchange
T exchange(T desired)

Atomically swap the value

fadd
T fadd(T mod)

Atomically increment the value

fsub
T fsub(T mod)

Atomically decrement the value

load
T load()

Constructor

opOpAssign
T opOpAssign(T rhs)

Op assign with SC semantics

opUnary
T opUnary()

Implicit conversion to FADD and FSUB

opUnary
T opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
auto ref opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.
store
void store(T newVal)

Store the value to the atomic location

Meta