#include <thread.h>
Inheritance diagram for ost::MutexCounter:

Public Member Functions | |
| MutexCounter (const char *id=NULL) | |
| Create and optionally name a mutex protected counter. | |
| MutexCounter (int initial, const char *id=NULL) | |
| Create and optionally name a mutex protected counter with an initial value. | |
Friends | |
| __EXPORT int | operator++ (MutexCounter &mc) |
| __EXPORT int | operator-- (MutexCounter &mc) |
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.
|
|
Create and optionally name a mutex protected counter.
|
|
||||||||||||
|
Create and optionally name a mutex protected counter with an initial value.
|
|
|
|
|
|
|
1.3.9.1