Function atomic_load

Source
unsafe fn atomic_load<T>(src: *mut T) -> T
where T: Copy,
Expand description

Atomically reads data from src.

This operation uses the Acquire ordering. If possible, an atomic instructions is used, and a global lock otherwise.