BloombergLP::bsls::AtomicOperations_DefaultUint64::subtractUint64Nv

Atomically subtract value from atomicUint and return the result.

Synopsis

Declared in <bsls_atomicoperations_default.h>

static
Types::Uint64
subtractUint64Nv(
    AtomicTypes::Uint64* atomicUint,
    Types::Uint64 value);

Description

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

Return Value

value of atomicUint after the subtraction

Parameters

NameDescription
atomicUintatomic unsigned 64-bit integer to modify
valueamount to subtract