FreeRTOS C++ Wrappers
1.6.0
C++ interface to FreeRTOS
|
#include <mutex.hpp>
Public Member Functions | |
MutexStandard () | |
virtual bool | Lock (TickType_t Timeout=portMAX_DELAY) |
virtual bool | Unlock () |
Public Member Functions inherited from cpp_freertos::Mutex | |
virtual | ~Mutex () |
Additional Inherited Members | |
Protected Member Functions inherited from cpp_freertos::Mutex | |
Mutex () | |
Protected Attributes inherited from cpp_freertos::Mutex | |
SemaphoreHandle_t | handle |
Standard usage Mutex. By default calls to Lock these objects block forever, but this can be changed by simply passing in a argument to the Lock() method. These objects are not recursively acquirable. Calling Lock() twice from the same Thread (i.e. task) will deadlock.
MutexStandard::MutexStandard | ( | ) |
Create a standard, non-recursize Mutex.
ThreadMutexException | on failure. |
Definition at line 57 of file cmutex.cpp.
|
virtual |
Lock the Mutex.
Timeout | How long to wait to get the Lock until giving up. |
Implements cpp_freertos::Mutex.
Definition at line 71 of file cmutex.cpp.
|
virtual |
Unlock the Mutex.
Implements cpp_freertos::Mutex.
Definition at line 78 of file cmutex.cpp.