Defined in header <stdatomic.h> void atomic_store( volatile A* obj , C desired); (1) (since C11) void atomic_store_explicit( volatile A* obj, C desired, memory_order order ); (2) (since C11)
Atomically replaces the value of the atomic variable pointed to by obj with desired. 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 order. order must be one