atomicStore
fn
void atomicStore(MemoryOrder ms = MemoryOrder.seq, T, V)(ref T val, V newval) if (!is(T == shared) && !is(V == shared)) pure nothrow @nogc @trustedWrites 'newval' into 'val'. The memory barrier specified by 'ms' is applied to the operation, which is fully sequenced by default. Valid memory orders are MemoryOrder.raw, MemoryOrder.rel, and MemoryOrder.seq.
Parameters
val | The target variable. |
newval | The value to store. |
fn
void atomicStore(MemoryOrder ms = MemoryOrder.seq, T, V)(ref shared T val, V newval) if (!is(T == class)) pure nothrow @nogc @trustedDitto
fn
void atomicStore(MemoryOrder ms = MemoryOrder.seq, T, V)(ref shared T val, auto ref shared V newval) if (is(T == class)) pure nothrow @nogc @trustedDitto