![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXThread.h>
Public Member Functions | |
FXMutex (FXbool recursive=FALSE) | |
void | lock () |
FXbool | trylock () |
FXbool | locked () |
void | unlock () |
~FXMutex () | |
Friends | |
class | FXCondition |
FXMutex provides a mutex which can be used to enforce critical sections around updates of data shared by multiple threads.
FX::FXMutex::FXMutex | ( | FXbool | recursive = FALSE | ) |
Initialize the mutex.
Delete the mutex.
void FX::FXMutex::lock | ( | ) |
Lock the mutex.
Referenced by FX::FXMutexLock::unlock().
Return TRUE if succeeded locking the mutex.
Return TRUE if mutex is already locked.
void FX::FXMutex::unlock | ( | ) |
Unlock mutex.
friend class FXCondition [friend] |
![]() |