![]() |
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 () |
The mutex will be automatically released when the scope is left (either by natural means or by means of an exception.
FX::FXMutexLock::FXMutexLock | ( | FXMutex & | m | ) | [inline] |
Construct & lock associated mutex.
FX::FXMutexLock::~FXMutexLock | ( | ) | [inline] |
Destroy and unlock associated mutex.
FXMutex& FX::FXMutexLock::mutex | ( | ) | [inline] |
Return reference to associated mutex.
void FX::FXMutexLock::lock | ( | ) | [inline] |
Lock mutex.
FXbool FX::FXMutexLock::trylock | ( | ) | [inline] |
Return TRUE if succeeded locking the mutex.
FXbool FX::FXMutexLock::locked | ( | ) | [inline] |
Return TRUE if mutex is already locked.
void FX::FXMutexLock::unlock | ( | ) | [inline] |
Unlock mutex.
![]() |