Method lrs::atomic::AtomicI32::max_weak

Replaces the value in the atomic integer by the maximum of the current value and a given value with relaxed ordering guarantees.

Syntax

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

Arguments

NameDescription
val

The value that will be compared to the integer.

Return value

Returns the old value.