Method lrs::atomic::AtomicI32::exchange_acquire

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

Syntax

impl AtomicI32 {
    fn exchange_acquire(&self, val: i32) -> i32
}

Arguments

NameDescription
val

The value to be stored in the atomic integer.

Return value

Returns the previous value.