The OpenD Programming Language

atomicLoad

Loads 'val' from memory and returns it. The memory barrier specified by 'ms' is applied to the operation, which is fully sequenced by default. Valid memory orders are MemoryOrder.raw, MemoryOrder.acq, and MemoryOrder.seq.

  1. T atomicLoad(T val)
    pragma(inline, true) pure nothrow @nogc @trusted
    T
    atomicLoad
    (
    auto ref return scope const T val
    )
    if (
    !is(T == shared U,
    U
    ) &&
    !is(T == shared inout U,
    U
    )
    &&
    !is(T == shared const U,
    U
    )
    )
  2. T atomicLoad(T val)
  3. TailShared!T atomicLoad(T val)

Parameters

val T

The target variable.

Return Value

Type: T

The value of 'val'.

Meta