atomicStore

Writes '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.

  1. void atomicStore(T val, V newval)
  2. void atomicStore(T val, V newval)
  3. void atomicStore(T val, V newval)
    pure nothrow @nogc @trusted
    void
    atomicStore
    (
    ref shared T val
    ,
    auto ref shared V newval
    )
    if (
    is(T == class)
    )

Parameters

val T

The target variable.

newval V

The value to store.

Meta