AWS SDK for C++AWS SDK for C++ Version 1.11.924 |
#include <Executor.h>
Public Member Functions | |
| virtual | ~Executor ()=default |
| template<class Fn , class ... Args> | |
| bool | Submit (Fn &&fn, Args &&... args) |
| bool | Submit (std::function< void()> &&callable) |
| virtual void | WaitUntilStopped () |
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 24 of file Executor.h.
|
virtualdefault |
|
inline |
Send function and its arguments to the SubmitToThread function.
Definition at line 33 of file Executor.h.
|
inline |
Definition at line 40 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::DefaultExecutor, Aws::Utils::Threading::PooledThreadExecutor, and Aws::Utils::Threading::SameThreadExecutor.
|
inlinevirtual |
Call to wait until all tasks have finished.
Reimplemented in Aws::Utils::Threading::DefaultExecutor, Aws::Utils::Threading::PooledThreadExecutor, and Aws::Utils::Threading::SameThreadExecutor.
Definition at line 48 of file Executor.h.