UCommon
|
Atomic counter class. More...
#include <atomic.h>
Public Member Functions | |
counter (long initial=0) | |
operator long () | |
long | operator* () |
long | operator++ () |
long | operator+= (long offset) |
long | operator-- () |
long | operator-= (long offset) |
Atomic counter class.
Can be used to manipulate value of an atomic counter without requiring explicit thread locking.