Function atomic_compare_exchange

Source
#[doc(hidden)] pub unsafe fn atomic_compare_exchange<T>(
    dst: *mut T,
    old: T,
    new: T,
    success: Ordering,
    failure: Ordering,
) -> Result<T, T>
where T: Copy,
🔬This is a nightly-only experimental API. (core_intrinsics)
Expand description

Publicly exposed for stdarch; nobody else should use this.