BloombergLP::bsls::AtomicOperations::addInt64Nv

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

Synopsis

Declared in <bsls_atomicoperations.h>

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

Return Value

value of atomicInt after the addition

Parameters

NameDescription
atomicIntatomic 64-bit integer to modify
valueamount to add