Function atomic_add

Source
unsafe fn atomic_add<T: Copy>(dst: *mut T, val: T, order: Ordering) -> T
Expand description

Returns the previous value (like __sync_fetch_and_add).