BloombergLP::bsls::Review::updateCount

Increment the specified count and return its new periodic value.

Synopsis

Declared in <bsls_review.h>

static
int
updateCount(Count* count);

Description

Increment the specified count and return the new value. Instead of overflowing, when the value is sufficiently large, decrement the value so that large values repeat periodically.

Return Value

new periodic value of the count

Parameters

NameDescription
countatomic failure count to update