Method lrs::atomic::AtomicUsize::add

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

Syntax

impl AtomicUsize {
    fn add(&self, val: usize) -> usize
}

Arguments

NameDescription
val

The value to be added to the integer.

Return value

Returns the old value.