Reference

MutexCounter(3cc)

The Mutex Counter is a counter variable which can safely be incremented or decremented by multiple threads. Thread protected integer counter.

NAME

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 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.