class MutexCounter

Thread protected integer counter. More...

Definition#include <thread.h>
InheritsMutex
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Members


Detailed Description

The Mutex Counter is a counter variable which can safely be incremented or decremented by multiple threads. 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.