Method lrs::atomic::AtomicU64::max_acquire_release

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

Syntax

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

Arguments

NameDescription
val

The value that will be compared to the integer.

Return value

Returns the old value.