8#define MSG_DISPATCH_DELEGATE 1
9#define MSG_EXIT_THREAD 2
15 ThreadMsg(
int id, std::shared_ptr<dmq::DelegateMsg> data =
nullptr)
16 : m_id(id), m_data(data) {
21 int GetId()
const {
return m_id; }
22 std::shared_ptr<dmq::DelegateMsg>
GetData()
const {
return m_data; }
26 std::shared_ptr<dmq::DelegateMsg> m_data;
A single-include header for the complete DelegateMQ library functionality.
#define XALLOCATOR
Definition DelegateOpt.h:91
A class to hold a platform-specific thread messsage that will be passed through the OS message queue.
Definition freertos/ThreadMsg.h:12
ThreadMsg(int id, std::shared_ptr< dmq::DelegateMsg > data=nullptr)
Definition freertos/ThreadMsg.h:15
int GetId() const
Definition freertos/ThreadMsg.h:21
virtual ~ThreadMsg()=default
std::shared_ptr< dmq::DelegateMsg > GetData() const
Definition freertos/ThreadMsg.h:22