BloombergLP::bsls::AtomicOperations::subtractUintNv

Atomically subtract from atomicUint and return the result.

Synopsis

Declared in <bsls_atomicoperations.h>

static
unsigned int
subtractUintNv(
    AtomicTypes::Uint* atomicUint,
    unsigned int 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 integer to modify
valueamount to subtract