AWS SDK for C++
0.12.9
AWS SDK for C++
|
#include <Executor.h>
Public Member Functions | |
virtual | ~Executor ()=default |
template<class Fn , class... Args> | |
bool | Submit (Fn &&fn, Args &&...args) |
Protected Member Functions | |
virtual bool | SubmitToThread (std::function< void()> &&)=0 |
Interface for implementing an Executor, to implement a custom thread execution strategy, inherit from this class and override SubmitToThread().
Definition at line 38 of file Executor.h.
|
virtualdefault |
|
inline |
Send function and its arguments to the SubmitToThread function.
Definition at line 47 of file Executor.h.
|
protectedpure virtual |
To implement your own executor implementation, then simply subclass Executor and implement this method.
Implemented in Aws::Utils::Threading::PooledThreadExecutor, and Aws::Utils::Threading::DefaultExecutor.