1#ifndef _THREAD_FREERTOS_H
2#define _THREAD_FREERTOS_H
13#include <condition_variable>
22 Thread(
const std::string& threadName);
47 static void Process(
void*);
49 TaskHandle_t m_thread =
nullptr;
50 QueueHandle_t m_queue =
nullptr;
52 const std::string THREAD_NAME;
A base class for a delegate enabled execution thread. Implemented by application code if asynchronous...
Definition freertos/Thread.h:19
std::string GetThreadName()
Get thread name.
Definition freertos/Thread.h:38
Thread(const std::string &threadName)
Constructor.
Definition freertos/Thread.cpp:14
virtual void DispatchDelegate(std::shared_ptr< dmq::DelegateMsg > msg)
TaskHandle_t GetThreadId()
Get the ID of this thread instance.
Definition freertos/Thread.cpp:51
~Thread()
Destructor.
Definition freertos/Thread.cpp:21
bool CreateThread()
Definition freertos/Thread.cpp:28
static TaskHandle_t GetCurrentThreadId()
Get the ID of the currently executing thread.
Definition freertos/Thread.cpp:62
A class to hold a platform-specific thread messsage that will be passed through the OS message queue.
Definition freertos/ThreadMsg.h:7