DelegateMQ
Loading...
Searching...
No Matches
dmq::IThread Class Referenceabstract

#include <IThread.h>

Inheritance diagram for dmq::IThread:
Thread Thread

Public Member Functions

virtual ~IThread ()=default
 Destructor.
 
virtual void DispatchDelegate (std::shared_ptr< DelegateMsg > msg)=0
 

Constructor & Destructor Documentation

◆ ~IThread()

virtual dmq::IThread::~IThread ( )
virtualdefault

Destructor.

Member Function Documentation

◆ DispatchDelegate()

virtual void dmq::IThread::DispatchDelegate ( std::shared_ptr< DelegateMsg > msg)
pure virtual

Dispatch a DelegateMsg onto this thread. The implementer is responsible for getting the DelegateMsg into an OS message queue. Once DelegateMsg is on the destination thread of control, the IDelegateInvoker::Invoke() function must be called to execute the target function.

Parameters
[in]msgA shared pointer to the message.
Postcondition
The destination thread calls IThreadInvoker::Invoke() when DelegateMsg is received.

Implemented in Thread, and Thread.


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