Atomically subtract value from atomicInt and return the result.

Synopsis

Declared in <bsls_atomicoperations_default.h>

static
int
subtractIntNv(
    AtomicTypes::Int* atomicInt,
    int 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

Name

Description

atomicInt

atomic integer to modify

value

amount to subtract

Created with MrDocs