class AtomicCounter
|
atomic counter operation.
More... |
|
|
Public Methods
The AtomicCounter class offers thread-safe manipulation of an integer
counter. These are commonly used for building thread-safe "reference"
counters for C++ classes. The AtomicCounter depends on the platforms
support for "atomic" integer operations, and can alternately substitute
a "mutex" if no atomic support exists.
AtomicCounter ()
| AtomicCounter |
Initialize an atomic counter to 0.
AtomicCounter (int value)
| AtomicCounter |
Initialize an atomic counter to a known value.
Parameters:
int operator++ (void)
| operator++ |
int operator-- (void)
| operator-- |
int operator+= (int change)
| operator+= |
int operator-= (int change)
| operator-= |
int operator+ (int change)
| operator+ |
int operator- (int change)
| operator- |
int operator= (int value)
| operator= |
bool operator! (void)
| operator! |
- Author: Sean Cavanaugh
- Generated: dyfet on home on Thu Jan 24 11:06:29 2002, using kdoc 2.0a53.