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

ConditionMutex Class Reference

Special mutex for conditions (see WaitCondition). More...

#include <mutex.h>

Collaboration diagram for ConditionMutex:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ConditionMutex ()
 ~ConditionMutex ()
void lock ()
bool test ()
void unlock ()

Private Attributes

GMutex * m

Friends

class WaitCondition

Detailed Description

Special mutex for conditions (see WaitCondition).

Author:
Wolfgang Wieser ] wwieser (a) gmx <*> de [
This mutex can neither be relied on to be recursive nor to be non-recursive. Hence, one should assume it is non-recursive and not depend on recursiveness when using it. However, this should not be a problem since one generally does not need a recursive mutex when protecting a contition.

As for the API, please see FastMutex.

Definition at line 216 of file mutex.h.


Constructor & Destructor Documentation

ConditionMutex::ConditionMutex  )  [inline]
 

Definition at line 223 of file mutex.h.

References m.

ConditionMutex::~ConditionMutex  )  [inline]
 

Definition at line 224 of file mutex.h.

References m.


Member Function Documentation

void ConditionMutex::lock  )  [inline]
 

Definition at line 226 of file mutex.h.

References m.

Referenced by Semaphore::post(), Semaphore::test(), and Semaphore::wait().

bool ConditionMutex::test  )  [inline]
 

Definition at line 227 of file mutex.h.

References m.

void ConditionMutex::unlock  )  [inline]
 

Definition at line 228 of file mutex.h.

References m.

Referenced by Semaphore::post(), Semaphore::test(), and Semaphore::wait().


Friends And Related Function Documentation

friend class WaitCondition [friend]
 

Definition at line 218 of file mutex.h.


Member Data Documentation

GMutex* ConditionMutex::m [private]
 

Definition at line 220 of file mutex.h.

Referenced by ConditionMutex(), lock(), test(), unlock(), WaitCondition::wait(), and ~ConditionMutex().


The documentation for this class was generated from the following file:
Generated on Sat Feb 19 22:35:23 2005 for Ray by doxygen 1.3.5