| 1: | func @atomicStore = <{TARGET: Type, VALUE: Type, ORDER: @pthr.AtomicOrdering}> (target: TARGET, value: VALUE in) -> Void; |
Atomically store a value.
TARGET: must be a non-optional pointer, and is a pointer to the type of value to store to
VALUE: must be the result of a dereference of TARGET, trivially-copyable, and cannot be F80
ORDER: cannot be @pthr.AtomicOrdering.ACQUIRE or @pthr.AtomicOrdering.ACQ_REL
target: target to store to
value: value to store to target
Returns Void.
(TODO)
| @atomicLoad | Atomically load a value |
| @atomicRMW | Atomic read-modify-write |
| @cmpxchg | Atomic compare-exchange |