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

FX::FXReverseMutex Class Reference

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

#include <FXMutex.h>

List of all members.

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 Mutex 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-2016 Jeroen van der Zijp