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 lock ()
FXbool trylock ()
FXbool unlock ()
 ~FXMutex ()


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  ) 
 

Initialize the mutex.

FX::FXMutex::~FXMutex  ) 
 

Delete the mutex.


Member Function Documentation

FXbool FX::FXMutex::lock  ) 
 

Lock the mutex.

FXbool FX::FXMutex::trylock  ) 
 

Try to lock the mutex; return TRUE locked.

FXbool FX::FXMutex::unlock  ) 
 

Unlock mutex.

Copyright © 1997-2004 Jeroen van der Zijp