DelegateMQ
|
Stores all function arguments suitable for blocking asynchronous calls. Argument data is not stored in the heap. More...
#include <DelegateAsyncWait.h>
Public Member Functions | |
DelegateAsyncWaitMsg (std::shared_ptr< IThreadInvoker > invoker, Args... args) | |
DelegateAsyncWaitMsg ()=delete | |
Delete the default constructor. | |
DelegateAsyncWaitMsg (const DelegateAsyncWaitMsg &)=delete | |
Delete the copy constructor. | |
DelegateAsyncWaitMsg & | operator= (const DelegateAsyncWaitMsg &)=delete |
Delete the copy assignment operator. | |
DelegateAsyncWaitMsg (DelegateAsyncWaitMsg &&)=delete | |
Delete the move constructor and move assignment. | |
DelegateAsyncWaitMsg & | operator= (DelegateAsyncWaitMsg &&)=delete |
virtual | ~DelegateAsyncWaitMsg ()=default |
std::tuple< Args... > & | GetArgs () |
Semaphore & | GetSema () |
std::mutex & | GetLock () |
bool | GetInvokerWaiting () |
void | SetInvokerWaiting (bool invokerWaiting) |
![]() | |
DelegateMsg (std::shared_ptr< IThreadInvoker > invoker) | |
virtual | ~DelegateMsg ()=default |
std::shared_ptr< IThreadInvoker > | GetInvoker () const |
Stores all function arguments suitable for blocking asynchronous calls. Argument data is not stored in the heap.
Args | The target function arguments. |
|
inline |
Constructor
[in] | invoker | - the invoker instance |
[in] | args | - a parameter pack of all target function arguments |
|
delete |
Delete the default constructor.
|
delete |
Delete the copy constructor.
|
delete |
Delete the move constructor and move assignment.
|
virtualdefault |
|
inline |
Get all function arguments
|
inline |
True if the sending thread is waiting for the receiver thread to call the function. False if the sending thread delegate timeout occurred and is not waiting.
true
if the sending thread is waiting for the receiving thread to complete the target function invoke.
|
inline |
Get a mutex shared between sender and receiver threads.
|
inline |
Get the semaphore used to signal the sending thread that the receiving thread has invoked the target function.
|
delete |
Delete the copy assignment operator.
|
delete |
|
inline |
Set to true when source thread is waiting for destination thread to complete the function call.
[in] | invokerWaiting | The status of the invoker waiting flag. |