1#ifndef _THREAD_FREERTOS_H
2#define _THREAD_FREERTOS_H
13#include <condition_variable>
27 Thread(
const std::string& threadName);
52 static void Process(
void*);
54 TaskHandle_t m_thread =
nullptr;
55 QueueHandle_t m_queue =
nullptr;
57 const std::string THREAD_NAME;
A base class for a delegate enabled execution thread. Implemented by application code if asynchronous...
Cross-platform thread for any system supporting C++11 std::thread (e.g. Windows, Linux).
Definition freertos/Thread.h:24
std::string GetThreadName()
Get thread name.
Definition freertos/Thread.h:43
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