atomic_load_acquire in std::intrinsics - Rust (original) (raw)
Function atomic_load_acquire
pub unsafe fn atomic_load_acquire<T>(src: *const T) -> T
where
T: Copy,
🔬This is a nightly-only experimental API. (core_intrinsics
)
Expand description
Loads the current value of the pointer.T
must be an integer or pointer type.
The stabilized version of this intrinsic is available on theatomic types via the load
method by passingOrdering::Acquire as the order
. For example, AtomicBool::load.