Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

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 MutexCounter:

Mutex List of all members.

Public Member Functions

 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 <dyfet@ostel.com>


Constructor & Destructor Documentation

MutexCounter::MutexCounter  ) 
 

MutexCounter::MutexCounter int  initial  ) 
 


Member Function Documentation

MutexCounter::CCXX_EXPORT int   ) 
 

MutexCounter::CCXX_EXPORT int   ) 
 


The documentation for this class was generated from the following file:
Generated on Thu Sep 25 13:14:32 2003 for GNU CommonC++ by doxygen 1.3.3