Method lrs::atomic::AtomicI64::sub

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

Syntax

impl AtomicI64 {
    fn sub(&self, val: i64) -> i64
}

Arguments

NameDescription
val

The value to be subtracted from the integer.

Return value

Returns the old value.