BloombergLP::bsls::AtomicOperations::incrementIntNvAcqRel

Atomically increment the specified atomicInt by 1 and return the resulting value, providing the acquire/release memory ordering guarantee.

Synopsis

Declared in <bsls_atomicoperations.h>

static
int
incrementIntNvAcqRel(AtomicTypes::Int* atomicInt);

Return Value

value of atomicInt after the operation

Parameters

NameDescription
atomicIntatomic integer to modify