c/atomic/atomic load

Atomically loads and returns the current value of the atomic variable pointed to by. The operation is atomic read 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_consume, memory_order_acquire or memory_order_seq_cst. Otherwise the behavior is undefined.

Return value
The current value of the atomic variable pointed to by.