Function atomic_swap

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