![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
FXMutex provides a mutex which can be used to enforce critical sections around updates of data shared by multiple threads. More...
#include <FXMutex.h>
Public Member Functions | |
| FXMutex (FXbool recursive=false) | |
| Initialize the mutex; if the parameter recursive is true, the mutex is reentrant, i.e. More... | |
| void | lock () |
| Lock the mutex. | |
| FXbool | trylock () |
| Return true if succeeded locking the mutex. | |
| FXbool | locked () |
| Return true if mutex is already locked. | |
| void | unlock () |
| Unlock mutex. | |
| ~FXMutex () | |
| Delete the mutex. | |
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; if the parameter recursive is true, the mutex is reentrant, i.e.
counts the number of locks and unlocks.
|
|