pub fn atomic_exchange_u32(ptr: &mut u32, value: u32) -> u32
Atomically exchanges *ptr with value and returns the old value.
*ptr
value