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

FX::FXReverseMutex Class Reference

The Reverse Mutex unlocks its associated FXMutex when entering the scope, and automatically relocks it upon exiting the scope. More...

#include <FXMutex.h>

Public Member Functions

 FXReverseMutex (FXMutex &m)
 Construct and unlock associated mutex.
 
FXMutexmutex ()
 Return reference to associated mutex.
 
void lock ()
 Lock mutex.
 
FXbool trylock ()
 Return true if succeeded locking the mutex.
 
FXbool locked ()
 Return true if mutex is already locked.
 
void unlock ()
 Unlock mutex.
 
 ~FXReverseMutex ()
 Destroy and relock associated mutex.
 

Detailed Description

The Reverse Mutex unlocks its associated FXMutex when entering the scope, and automatically relocks it upon exiting the scope.

Exceptions raised while in this region will automatically relock the mutex upon leaving the enclosing scope.


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

Copyright © 1997-2022 Jeroen van der Zijp