@atomicLoad
@atomicLoad
@atomicLoad(comptime T: type, ptr: *const T, comptime ordering: AtomicOrder) T
This builtin function atomically dereferences a pointer to a T and returns the value.
T must be a pointer, a bool, a float, an integer or an enum.
AtomicOrder can be found with @import("std").builtin.AtomicOrder.
See also:
- @atomicStore
- @atomicRmw
- @fence
- @cmpxchgWeak
- @cmpxchgStrong
