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(ref T val, V newval)
    pure nothrow @nogc @trusted
    void
    atomicStore
    (
    ref T val
    ,)
    if (
    !is(T == shared) &&
    !is(V == shared)
    )
  2. void atomicStore(ref shared T val, V newval)
  3. void atomicStore(ref shared T val, shared V newval)

Parameters

val
Type: T

The target variable.

newval
Type: V

The value to store.

Suggestion Box / Bug Report