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_all_all_clangintrinsics.h>

static
int
addIntNv(
    AtomicTypes::Int* atomicInt,
    int value);

Return Value

value of atomicInt after the addition

Parameters

Name

Description

atomicInt

atomic integer to modify

value

amount to add

Created with MrDocs