atomicload
Atomic load, often called atomic_load, is a concurrency primitive used to read the value stored in an atomic object without introducing data races. The operation retrieves the current value held by the atomic object in a manner that is indivisible from other threads’ views of memory. This means the read cannot return a partially updated value and participates in the program’s synchronization scheme.
Memory ordering is a key aspect of atomic_load. Different memory orderings control how the read is synchronized
Language variants exist. In C11 and later, atomic_load reads from an _Atomic object and can be expressed
Usage and considerations. Atomic_load is commonly used to read shared state protected by atomics or to observe