|
DelegateMQ
|
FreeRTOS implementation of the DelegateMQ IThread interface. More...
#include "delegate/IThread.h"#include "FreeRTOS.h"#include "task.h"#include "queue.h"#include "semphr.h"#include <string>#include <memory>Go to the source code of this file.
Classes | |
| class | Thread |
| Cross-platform thread for any system supporting C++11 std::thread (e.g. Windows, Linux). More... | |
FreeRTOS implementation of the DelegateMQ IThread interface.
This class provides a concrete implementation of the IThread interface using FreeRTOS primitives (Tasks and Queues). It enables DelegateMQ to dispatch asynchronous delegates to a dedicated FreeRTOS task.
Key Features:
xTaskCreate call to establish a dedicated worker loop.QueueHandle_t to receive and process incoming delegate messages in a thread-safe manner.GetThreadId() using TaskHandle_t to ensure correct thread context checks (used by AsyncInvoke optimizations).ExitThread) to cleanup resources, though typical embedded tasks often run forever.