Method lrs::atomic::AtomicU32::sub

Subtracts a value from the atomic integer with sequentially consistent semantics.

Syntax

impl AtomicU32 {
    fn sub(&self, val: u32) -> u32
}

Arguments

NameDescription
val

The value to be subtracted from the integer.

Return value

Returns the old value.