A unsigned 64-bit shared integer class. More...
#include <util.h>
Public Member Functions | |
uint64_t | operator() () const |
Read the current value. | |
uint64_t | operator++ () |
Increment operator. | |
void | operator+= (const uint64_t rhs) |
In-place addition operator. | |
uint64_t | operator-- () |
Decrement operator. | |
void | operator-= (const uint64_t rhs) |
In-place subtraction operator. | |
A unsigned 64-bit shared integer class.
It allows multiple threads to safely operate on the integer through the use of the atomic operations provided by GCC extension. If the atomic extension is not available, it falls back on the mutual exclusion lock provided by pthread library.