FreeRTOS C++ Wrappers
1.6.0
C++ interface to FreeRTOS
|
#include <mutex.hpp>
Public Member Functions | |
virtual bool | Lock (TickType_t Timeout=portMAX_DELAY)=0 |
virtual bool | Unlock ()=0 |
virtual | ~Mutex () |
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
Definition at line 51 of file cmutex.cpp.
|
protected |
This constructor should not be public.
Definition at line 46 of file cmutex.cpp.
|
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::MutexRecursive, and cpp_freertos::MutexStandard.
|
pure virtual |
Unlock the Mutex.
Implemented in cpp_freertos::MutexRecursive, and cpp_freertos::MutexStandard.
|
protected |