Method lrs::atomic::AtomicI8::max_acquire

Replaces the value in the atomic integer by the maximum of the current value and a given value with acquire semantics.

Syntax

impl AtomicI8 {
    fn max_acquire(&self, val: i8) -> i8
}

Arguments

NameDescription
val

The value that will be compared to the integer.

Return value

Returns the old value.