cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
Loading...
Searching...
No Matches
msgpack_rpc::executors::IExecutor Class Referenceabstract

Interface of executors to process asynchronous tasks. More...

#include <msgpack_rpc/executors/i_executor.h>

Inheritance diagram for msgpack_rpc::executors::IExecutor:
Collaboration diagram for msgpack_rpc::executors::IExecutor:

Public Member Functions

 IExecutor (const IExecutor &)=delete
 IExecutor (IExecutor &&)=delete
virtual ~IExecutor () noexcept=default
 Destructor.
virtual AsioContextTypecontext (OperationType type) noexcept=0
 Get the context in asio library.
IExecutoroperator= (const IExecutor &)=delete
IExecutoroperator= (IExecutor &&)=delete

Protected Member Functions

 IExecutor () noexcept=default
 Constructor.

Detailed Description

Interface of executors to process asynchronous tasks.

Definition at line 30 of file i_executor.h.

Member Function Documentation

◆ context()

virtual AsioContextType & msgpack_rpc::executors::IExecutor::context ( OperationType type)
pure virtualnoexcept

Get the context in asio library.

Parameters
[in]typeOperation type.
Returns
Context.
Note
Implementation can return different objects for multiple function calls and different operation types.

Implemented in msgpack_rpc::executors::GeneralExecutor, msgpack_rpc::executors::SingleThreadExecutor, and msgpack_rpc::executors::WrappingExecutor.


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