Function core::sync::atomic::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).