Embedded Multicore Building Blocks V1.0.0
|
Non-recursive, exclusive mutex. More...
#include <mutex.h>
Public Member Functions | |
Mutex () | |
Creates a mutex which is in unlocked state. More... | |
void | Lock () |
Waits until the mutex can be locked and locks it. More... | |
bool | TryLock () |
Tries to lock the mutex and returns immediately. More... | |
void | Unlock () |
Unlocks the mutex. More... | |
Non-recursive, exclusive mutex.
Mutexes of this type cannot be locked recursively, that is, multiple times by the same thread with unlocking it in between. Moreover, it cannot be copied or assigned.
embb::base::Mutex::Mutex | ( | ) |
Creates a mutex which is in unlocked state.
void embb::base::Mutex::Lock | ( | ) |
bool embb::base::Mutex::TryLock | ( | ) |