Method lrs::atomic::AtomicU64::exchange

Replaces the value in the atomic integer by a new one with sequentially consistent semantics.

Syntax

impl AtomicU64 {
    fn exchange(&self, val: u64) -> u64
}

Arguments

NameDescription
val

The value to be stored in the atomic integer.

Return value

Returns the previous value.