atomic_sub

Function atomic_sub 

Source
unsafe fn atomic_sub<T: Copy, U: Copy>(
    dst: *mut T,
    val: U,
    order: Ordering,
) -> T
Available on target_has_atomic only.
Expand description

Returns the previous value (like __sync_fetch_and_sub).