AWS SDK for C++  0.12.9
AWS SDK for C++
Public Member Functions | Protected Member Functions | List of all members
Aws::Utils::Threading::Executor Class Referenceabstract

#include <Executor.h>

Inheritance diagram for Aws::Utils::Threading::Executor:
Aws::Utils::Threading::DefaultExecutor Aws::Utils::Threading::PooledThreadExecutor

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
 

Detailed Description

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.

Constructor & Destructor Documentation

virtual Aws::Utils::Threading::Executor::~Executor ( )
virtualdefault

Member Function Documentation

template<class Fn , class... Args>
bool Aws::Utils::Threading::Executor::Submit ( Fn &&  fn,
Args &&...  args 
)
inline

Send function and its arguments to the SubmitToThread function.

Definition at line 47 of file Executor.h.

virtual bool Aws::Utils::Threading::Executor::SubmitToThread ( std::function< void()> &&  )
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.


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