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

Parameters

val T

The target variable.

Return Value

Type: TailShared!T

The value of 'val'.

Meta