Method lrs::atomic::AtomicUsize::exchange_release

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

Syntax

impl AtomicUsize {
    fn exchange_release(&self, val: usize) -> usize
}

Arguments

NameDescription
val

The value to be stored in the atomic integer.

Return value

Returns the previous value.