class MutexCounter
|
Thread protected integer counter.
More... |
|
|
Public Methods
The Mutex Counter is a counter variable which can safely be incremented
or decremented by multiple threads. A Mutex is used to protect access
to the counter variable (an integer). An initial value can be specified
for the counter, and it can be manipulated with the ++ and -- operators.
MutexCounter ()
| MutexCounter |
MutexCounter (int initial)
| MutexCounter |
friend int operator++ (MutexCounter &mc)
| operator++ |
friend int operator-- (MutexCounter &mc)
| operator-- |
- Author: David Sugar
- Generated: dyfet on home on Fri Dec 21 08:32:02 2001, using kdoc 2.0a53.