ost::MutexCounter Class Reference
The Mutex Counter is a counter variable which can safely be incremented or decremented by multiple threads.Thread protected integer counter.
More...
#include <thread.h>
Inheritance diagram for ost::MutexCounter:
List of all members.
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 <dyfet@ostel.com>
Constructor & Destructor Documentation
ost::MutexCounter::MutexCounter |
( |
const char * |
id = NULL |
) |
|
|
ost::MutexCounter::MutexCounter |
( |
int |
initial, |
|
|
const char * |
id = NULL |
|
) |
|
|
Friends And Related Function Documentation
The documentation for this class was generated from the following file:
Generated on Thu Nov 24 14:09:10 2005 for GNU CommonC++ by
1.4.5