Method lrs::atomic::AtomicU32::add

Adds a value to the atomic integer with sequentially consistent semantics.

Syntax

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

Arguments

NameDescription
val

The value to be added to the integer.

Return value

Returns the old value.