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
Name |
Description |
count |
atomic failure count to update |
Created with MrDocs