Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXMutex Class Reference

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

#include <FXThread.h>

List of all members.

Public Member Functions

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

Friends

class FXCondition


Detailed Description

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

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.


Friends And Related Function Documentation

friend class FXCondition [friend]

Copyright © 1997-2009 Jeroen van der Zijp