@atomicStore
@atomicStore
@atomicStore(comptime T: type, ptr: *T, value: T, comptime ordering: AtomicOrder) void
This builtin function dereferences a pointer to a T and atomically stores the given 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:
- @atomicLoad
- @atomicRmw
- @fence
- @cmpxchgWeak
- @cmpxchgStrong
