Method lrs::atomic::AtomicUsize::exchange_weak

Replaces the value in the atomic integer by a new one with relaxed ordering guarantees.

Syntax

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

Arguments

NameDescription
val

The value to be stored in the atomic integer.

Return value

Returns the previous value.