![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXThread.h>
Public Member Functions | |
FXMutexLock (FXMutex &m) | |
FXMutex & | mutex () |
void | lock () |
FXbool | trylock () |
FXbool | locked () |
void | unlock () |
~FXMutexLock () | |
An easy way to establish a correspondence between a C++ scope and a critical section is to simply declare an FXMutexLock at the beginning of the scope.
The mutex will be automatically released when the scope is left (either by natural means or by means of an exception.
|
inline |
Construct & lock associated mutex.
|
inline |
Destroy and unlock associated mutex.
|
inline |
Return reference to associated mutex.
|
inline |
Lock mutex.
|
inline |
Return TRUE if succeeded locking the mutex.
|
inline |
Return TRUE if mutex is already locked.
|
inline |
Unlock mutex.
References FX::FXMutex::lock().
![]() |