MutexCounter3cc
The mutex counter is a counter variable which can safely be incremented or decremented by multiple threads. thread protected integer counter.
Usage
#include <thread.h>
Inherits Mutex.
Public Methods
MutexCounter ()
MutexCounter (int initial)
friend CCXX_EXPORT (int) operator++(MutexCounter &mc)
friend CCXX_EXPORT (int) operator--(MutexCounter &mc)
Detailed description
The Mutex Counter is a counter variable which can safely be incremented or decremented by multiple threads. Thread protected integer counter.
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.
Author: David Sugar <[email protected]>