#include <mt_posix.h>
Public Member Functions | |
void | lock () |
Locks the mutex. | |
void | lock () |
Locks the mutex. | |
Mutex () | |
Creates the mutex. | |
Mutex () | |
Creates the mutex. | |
bool | trylock () |
Tries to lock the mutex. | |
bool | trylock () |
Tries to lock the mutex. | |
void | unlock () |
Unlocks the mutex. | |
void | unlock () |
Unlocks the mutex. | |
~Mutex () | |
Destroys the mutex. | |
~Mutex () | |
Destroys the mutex. |
Directly mapping to the underlying type via inline functions.
The mutex must be considered as non-reentrant.
Falcon::Mutex::Mutex | ( | ) | [inline] |
Falcon::Mutex::~Mutex | ( | ) | [inline] |
Falcon::Mutex::Mutex | ( | ) | [inline] |
Creates the mutex.
Will assert on failure.
Falcon::Mutex::~Mutex | ( | ) | [inline] |
Destroys the mutex.
Will assert on failure.
void Falcon::Mutex::lock | ( | ) | [inline] |
Locks the mutex.
Will assert on failure -- but only in debug
void Falcon::Mutex::lock | ( | ) | [inline] |
bool Falcon::Mutex::trylock | ( | ) | [inline] |
Tries to lock the mutex.
Will assert on failure.
bool Falcon::Mutex::trylock | ( | ) | [inline] |
void Falcon::Mutex::unlock | ( | ) | [inline] |
Unlocks the mutex.
Will assert on failure -- but only in debug
void Falcon::Mutex::unlock | ( | ) | [inline] |