FX::FXMutex Class Reference

#include <FXThread.h>

List of all members.


Detailed Description

FXMutex provides a mutex which can be used to enforce critical sections around updates of data shared by multiple threads.

Public Member Functions

 FXMutex (FXbool recursive=FALSE)
void lock ()
FXbool trylock ()
FXbool locked ()
void unlock ()
 ~FXMutex ()

Friends

class FXCondition

Constructor & Destructor Documentation

FX::FXMutex::FXMutex ( FXbool  recursive = FALSE  ) 

Initialize the mutex.

FX::FXMutex::~FXMutex (  ) 

Delete the mutex.


Member Function Documentation

void FX::FXMutex::lock (  ) 

Lock the mutex.

FXbool FX::FXMutex::trylock (  ) 

Return TRUE if succeeded locking the mutex.

FXbool FX::FXMutex::locked (  ) 

Return TRUE if mutex is already locked.

void FX::FXMutex::unlock (  ) 

Unlock mutex.


The documentation for this class was generated from the following file:

(C) 2002-2008 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Jun 13 22:21:16 2008 for TnFOX by doxygen v1.5.6