c/atomic/atomic store

Atomically replaces the value of the atomic variable pointed to by with. The operation is atomic write operation.

The first version orders memory accesses according to memory_order_seq_cst, the second version orders memory accesses according to. must be one of memory_order_relaxed, memory_order_release or memory_order_seq_cst. Otherwise the behavior is undefined.

Return value
(none)