The OpenD Programming Language

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

Parameters

val T

The target variable.

newval V

The value to store.

Meta