AWS SDK for C++  1.8.73
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:

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 30 of file Executor.h.

Constructor & Destructor Documentation

◆ ~Executor()

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

Member Function Documentation

◆ Submit()

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 39 of file Executor.h.

◆ SubmitToThread()

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: