DelegateMQ
Loading...
Searching...
No Matches
freertos/ThreadMsg.h
Go to the documentation of this file.
1#ifndef _THREAD_MSG_H
2#define _THREAD_MSG_H
3
7{
8public:
16 ThreadMsg(int id, std::shared_ptr<dmq::DelegateMsg> data) :
17 m_id(id),
18 m_data(data)
19 {
20 }
21
22 int GetId() const { return m_id; }
23 std::shared_ptr<dmq::DelegateMsg> GetData() { return m_data; }
24
25private:
26 int m_id;
27 std::shared_ptr<dmq::DelegateMsg> m_data;
28};
29
30#endif
A class to hold a platform-specific thread messsage that will be passed through the OS message queue.
Definition freertos/ThreadMsg.h:7
ThreadMsg(int id, std::shared_ptr< dmq::DelegateMsg > data)
Definition freertos/ThreadMsg.h:16
std::shared_ptr< dmq::DelegateMsg > GetData()
Definition freertos/ThreadMsg.h:23
int GetId() const
Definition freertos/ThreadMsg.h:22