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)
  2. T atomicLoad(T val)
    pure nothrow @nogc @trusted
    T
    atomicLoad
    (
    auto ref return scope shared const T val
    )
    if (
    !hasUnsharedIndirections!T
    )
  3. TailShared!T atomicLoad(T val)

Parameters

val T

The target variable.

Return Value

Type: T

The value of 'val'.

Meta