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 <FXMutex.h>

Public Member Functions

 FXMutex (FXbool recursive=false)
 Initialize the mutex; if the parameter recursive is true, the mutex is reentrant, i.e. More...
 
void lock ()
 Lock the mutex.
 
FXbool trylock ()
 Return true if succeeded locking the mutex.
 
FXbool locked ()
 Return true if mutex is already locked.
 
void unlock ()
 Unlock mutex.
 
 ~FXMutex ()
 Delete the mutex.
 

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

◆ FXMutex()

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

Initialize the mutex; if the parameter recursive is true, the mutex is reentrant, i.e.

counts the number of locks and unlocks.


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

Copyright © 1997-2022 Jeroen van der Zijp