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

Public Methods | |
| MutexCounter (const char *id=NULL) | |
| Create and optionally name a mutex protected counter. More... | |
| MutexCounter (int initial, const char *id=NULL) | |
| Create and optionally name a mutex protected counter with an initial value. More... | |
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.2.8.1 written by Dimitri van Heesch,
© 1997-2001