Mutex Class Reference

A mutex class for safe multithreading. More...

#include <mutex.h>

List of all members.

Public Member Functions

 Mutex (MutexType _type=MUTEX_TYPE_RECURSIVE)
 The constructor.
 ~Mutex ()
 The destructor.

Protected Attributes

pthread_mutexattr_t m_mutexAttr
 POSIX threading mutex.


Detailed Description

A mutex class for safe multithreading.

Mutual exclusion (often abbreviated to mutex) algorithms are used in concurrent programming to avoid the simultaneous use of a common resource, such as a global variable, by pieces of computer code called critical sections.


Constructor & Destructor Documentation

Mutex ( MutexType  _type = MUTEX_TYPE_RECURSIVE  ) 

The constructor.

By default creates a mutex of type MUTEX_TYPE_RECURSIVE.

See also:
MutexType


Generated on Sun Feb 8 11:10:00 2009 for CrissCross by  doxygen 1.5.8