man ost_MutexCounter (Fonctions bibliothèques) - The Mutex Counter is a counter variable which can safely be incremented or decremented by multiple threads.Thread protected integer counter.
NAME
ost::MutexCounter - The Mutex Counter is a counter variable which can safely be incremented or decremented by multiple threads.Thread protected integer counter.
SYNOPSIS
#include <thread.h>
Inherits ost::Mutex.
Public Member Functions
MutexCounter (const char *id=NULL)
MutexCounter (int initial, const char *id=NULL)
Friends
__EXPORT int operator++ (MutexCounter &mc)
__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 <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
__EXPORT int operator++ (MutexCounter & mc) [friend]
__EXPORT int operator-- (MutexCounter & mc) [friend]
Author
Generated automatically by Doxygen for GNU CommonC++ from the source code.