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

Abstract base class to support asynchronous delegate function invoke on destination thread of control. Used internally by the delegate library, not user application code.
More...

#include <IInvoker.h>

Inheritance diagram for dmq::IThreadInvoker:
dmq::DelegateFreeAsync< RetType(Args...)> dmq::DelegateFreeAsyncWait< RetType(Args...)> dmq::DelegateFunctionAsync< RetType(Args...)> dmq::DelegateFunctionAsyncWait< RetType(Args...)> dmq::DelegateMemberAsync< TClass, RetType(Args...)> dmq::DelegateMemberAsyncWait< TClass, RetType(Args...)>

Public Member Functions

virtual bool Invoke (std::shared_ptr< DelegateMsg > msg)=0
 

Detailed Description

Abstract base class to support asynchronous delegate function invoke on destination thread of control. Used internally by the delegate library, not user application code.

Member Function Documentation

◆ Invoke()

virtual bool dmq::IThreadInvoker::Invoke ( std::shared_ptr< DelegateMsg > msg)
pure virtual

Called to invoke the bound target function by the destination thread of control.

Parameters
[in]msgThe incoming delegate message.
Returns
true if function was invoked; false if failed.

Implemented in dmq::DelegateFreeAsync< RetType(Args...)>, dmq::DelegateFreeAsyncWait< RetType(Args...)>, dmq::DelegateFunctionAsync< RetType(Args...)>, dmq::DelegateFunctionAsyncWait< RetType(Args...)>, dmq::DelegateMemberAsync< TClass, RetType(Args...)>, and dmq::DelegateMemberAsyncWait< TClass, RetType(Args...)>.


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