Embedded Multicore Building Blocks V1.0.0
|
Recursive, exclusive mutex. More...
#include <mutex.h>
Public Member Functions | |
RecursiveMutex () | |
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 a locked mutex. More... | |
Recursive, exclusive mutex.
Mutexes of this type can be locked recursively, that is, multiple times by the same thread without unlocking it in between. It is unlocked only, if the number of unlock operations has reached the number of previous lock operations by the same thread. It cannot be copied or assigned.
embb::base::RecursiveMutex::RecursiveMutex | ( | ) |
Creates a mutex which is in unlocked state.
void embb::base::RecursiveMutex::Lock | ( | ) |
bool embb::base::RecursiveMutex::TryLock | ( | ) |