Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
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. | |
FXMutex & | mutex () |
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. | |
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.
Copyright © 1997-2022 Jeroen van der Zijp |