MutexCounter(3cc)

MutexCounter3cc

The mutex counter is a counter variable which can safely be incremented or decremented by multiple threads. thread protected integer counter.

Usage

#include <thread.h>

Inherits Mutex.

Public Methods

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 <[email protected]>

Constructor & destructor documentation

MutexCounter::MutexCounter ()

MutexCounter::MutexCounter (int initial)

Member function documentation

MutexCounter::CCXX_EXPORT (int)

MutexCounter::CCXX_EXPORT (int)

Author

Generated automatically by Doxygen for CommonC++ from the source code.

From libcommoncpp2-dev 1.0.13-5 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.