BloombergLP::bsls::AtomicOperations::subtractInt64Nv

Atomically subtract from atomicInt and return the result.

Synopsis

Declared in <bsls_atomicoperations.h>

static
Types::Int64
subtractInt64Nv(
    AtomicTypes::Int64* atomicInt,
    Types::Int64 value);

Description

Atomically subtract from the specified atomicInt the specified value and return the resulting value, providing the sequential consistency memory ordering guarantee.

Return Value

value of atomicInt after the subtraction

Parameters

NameDescription
atomicIntatomic 64-bit integer to modify
valueamount to subtract