Purpose
Reads a value from an atomic object.
Prototypes
C atomic_load_explicit(volatile A *object,
memory_order order);
Parameters
- A
- One of the atomic types.
- C
- The corresponding non-atomic type of A.
- object
- A pointer that points to the atomic object to access.
- order
- The memory synchronization order for this operation. The order parameter
cannot be memory_order_release or memory_order_acq_rel.
Return value
Atomically returns the value
pointed to by object.
Memory is affected
according to the value of order.