FreeRTOS Addons
|
#include <mutex.hpp>
Public Member Functions | |
virtual | ~Mutex () |
virtual bool | Lock (TickType_t Timeout=portMAX_DELAY)=0 |
virtual bool | Unlock ()=0 |
Protected Member Functions | |
Mutex () | |
Protected Attributes | |
SemaphoreHandle_t | handle |
Base wrapper class around FreeRTOS's implementation of mutexes.
By definition, Mutexes can NOT be used from ISR contexts.
|
virtual |
Our destructor
|
protected |
This constructor should not be public.
|
pure virtual |
Lock the Mutex.
Each type of Mutex implements it's own locking code as per the FreeRTOS API.
Timeout | How long to wait to get the Lock until giving up. |
Implemented in cpp_freertos::MutexStandard, and cpp_freertos::MutexRecursive.
|
pure virtual |
Unlock the Mutex.
Implemented in cpp_freertos::MutexStandard, and cpp_freertos::MutexRecursive.
|
protected |
FreeRTOS semaphore handle.