View source code
Display the source code in core/atomic.d from which this page was generated on
github.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Page wiki
View or edit the community-maintained wiki page associated with this page.
Function core.atomic.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
.
Prototype
HeadUnshared!T atomicLoad(core.atomic.MemoryOrder ms, T)( T val ) pure nothrow @nogc;
Parameters
Name | Description |
---|---|
val | The target variable. |
Returns
The value of 'val
'.
Authors
Sean Kelly, Alex Rønne Petersen