Method lrs::atomic::AtomicU16::max

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

Syntax

impl AtomicU16 {
    fn max(&self, val: u16) -> u16
}

Arguments

NameDescription
val

The value that will be compared to the integer.

Return value

Returns the old value.