DelegateMQ
Loading...
Searching...
No Matches
ThreadMsg Class Reference

A class to hold a platform-specific thread messsage that will be passed through the OS message queue.
More...

#include <ThreadMsg.h>

Public Member Functions

 ThreadMsg (int id, std::shared_ptr< dmq::DelegateMsg > data=nullptr)
 
virtual ~ThreadMsg ()=default
 
int GetId () const
 
std::shared_ptr< dmq::DelegateMsgGetData () const
 
 ThreadMsg (int id, std::shared_ptr< dmq::DelegateMsg > data=nullptr)
 
virtual ~ThreadMsg ()=default
 
int GetId () const
 
std::shared_ptr< dmq::DelegateMsgGetData () const
 
 ThreadMsg (int id, std::shared_ptr< dmq::DelegateMsg > data=nullptr)
 
virtual ~ThreadMsg ()=default
 
int GetId () const
 
std::shared_ptr< dmq::DelegateMsgGetData () const
 
 ThreadMsg (int id, std::shared_ptr< dmq::DelegateMsg > data)
 
int GetId () const
 
std::shared_ptr< dmq::DelegateMsgGetData () const
 
dmq::Priority GetPriority () const
 
 ThreadMsg (int id, std::shared_ptr< dmq::DelegateMsg > data=nullptr)
 
virtual ~ThreadMsg ()=default
 
int GetId () const
 
std::shared_ptr< dmq::DelegateMsgGetData () const
 
 ThreadMsg (int id, std::shared_ptr< dmq::DelegateMsg > data=nullptr)
 
virtual ~ThreadMsg ()=default
 
int GetId () const
 
std::shared_ptr< dmq::DelegateMsgGetData () const
 

Detailed Description

A class to hold a platform-specific thread messsage that will be passed through the OS message queue.

Constructor & Destructor Documentation

◆ ThreadMsg() [1/6]

ThreadMsg::ThreadMsg ( int id,
std::shared_ptr< dmq::DelegateMsg > data = nullptr )
inline

◆ ~ThreadMsg() [1/5]

virtual ThreadMsg::~ThreadMsg ( )
virtualdefault

◆ ThreadMsg() [2/6]

ThreadMsg::ThreadMsg ( int id,
std::shared_ptr< dmq::DelegateMsg > data = nullptr )
inline

◆ ~ThreadMsg() [2/5]

virtual ThreadMsg::~ThreadMsg ( )
virtualdefault

◆ ThreadMsg() [3/6]

ThreadMsg::ThreadMsg ( int id,
std::shared_ptr< dmq::DelegateMsg > data = nullptr )
inline

◆ ~ThreadMsg() [3/5]

virtual ThreadMsg::~ThreadMsg ( )
virtualdefault

◆ ThreadMsg() [4/6]

ThreadMsg::ThreadMsg ( int id,
std::shared_ptr< dmq::DelegateMsg > data )
inline

Constructor

Parameters
[in]id- a unique identifier for the thread messsage
[in]data- a pointer to the messsage data to be typecast by the receiving task based on the id value.
Precondition
The data pointer argument must be created on the heap.
Postcondition
The destination thread will delete the heap allocated data once the callback is complete.

◆ ThreadMsg() [5/6]

ThreadMsg::ThreadMsg ( int id,
std::shared_ptr< dmq::DelegateMsg > data = nullptr )
inline

◆ ~ThreadMsg() [4/5]

virtual ThreadMsg::~ThreadMsg ( )
virtualdefault

◆ ThreadMsg() [6/6]

ThreadMsg::ThreadMsg ( int id,
std::shared_ptr< dmq::DelegateMsg > data = nullptr )
inline

◆ ~ThreadMsg() [5/5]

virtual ThreadMsg::~ThreadMsg ( )
virtualdefault

Member Function Documentation

◆ GetData() [1/6]

std::shared_ptr< dmq::DelegateMsg > ThreadMsg::GetData ( ) const
inline

◆ GetData() [2/6]

std::shared_ptr< dmq::DelegateMsg > ThreadMsg::GetData ( ) const
inline

◆ GetData() [3/6]

std::shared_ptr< dmq::DelegateMsg > ThreadMsg::GetData ( ) const
inline

◆ GetData() [4/6]

std::shared_ptr< dmq::DelegateMsg > ThreadMsg::GetData ( ) const
inline

◆ GetData() [5/6]

std::shared_ptr< dmq::DelegateMsg > ThreadMsg::GetData ( ) const
inline

◆ GetData() [6/6]

std::shared_ptr< dmq::DelegateMsg > ThreadMsg::GetData ( ) const
inline

◆ GetId() [1/6]

int ThreadMsg::GetId ( ) const
inline

◆ GetId() [2/6]

int ThreadMsg::GetId ( ) const
inline

◆ GetId() [3/6]

int ThreadMsg::GetId ( ) const
inline

◆ GetId() [4/6]

int ThreadMsg::GetId ( ) const
inline

◆ GetId() [5/6]

int ThreadMsg::GetId ( ) const
inline

◆ GetId() [6/6]

int ThreadMsg::GetId ( ) const
inline

◆ GetPriority()

dmq::Priority ThreadMsg::GetPriority ( ) const
inline

The documentation for this class was generated from the following files: