atomic_add

Function atomic_add 

Source
unsafe fn atomic_add<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_add).