AWS SDK for C++  1.9.157
AWS SDK for C++
Public Member Functions | Protected Member Functions | Friends | List of all members
Aws::Utils::Threading::PooledThreadExecutor Class Reference

#include <Executor.h>

+ Inheritance diagram for Aws::Utils::Threading::PooledThreadExecutor:

Public Member Functions

 PooledThreadExecutor (size_t poolSize, OverflowPolicy overflowPolicy=OverflowPolicy::QUEUE_TASKS_EVENLY_ACCROSS_THREADS)
 
 ~PooledThreadExecutor ()
 
 PooledThreadExecutor (const PooledThreadExecutor &)=delete
 
PooledThreadExecutoroperator= (const PooledThreadExecutor &)=delete
 
 PooledThreadExecutor (PooledThreadExecutor &&)=delete
 
PooledThreadExecutoroperator= (PooledThreadExecutor &&)=delete
 
- Public Member Functions inherited from Aws::Utils::Threading::Executor
virtual ~Executor ()=default
 
template<class Fn , class ... Args>
bool Submit (Fn &&fn, Args &&... args)
 

Protected Member Functions

bool SubmitToThread (std::function< void()> &&) override
 

Friends

class ThreadTask
 

Detailed Description

Thread Pool Executor implementation.

Definition at line 81 of file Executor.h.

Constructor & Destructor Documentation

◆ PooledThreadExecutor() [1/3]

Aws::Utils::Threading::PooledThreadExecutor::PooledThreadExecutor ( size_t  poolSize,
OverflowPolicy  overflowPolicy = OverflowPolicy::QUEUE_TASKS_EVENLY_ACCROSS_THREADS 
)

◆ ~PooledThreadExecutor()

Aws::Utils::Threading::PooledThreadExecutor::~PooledThreadExecutor ( )

◆ PooledThreadExecutor() [2/3]

Aws::Utils::Threading::PooledThreadExecutor::PooledThreadExecutor ( const PooledThreadExecutor )
delete

Rule of 5 stuff. Don't copy or move

◆ PooledThreadExecutor() [3/3]

Aws::Utils::Threading::PooledThreadExecutor::PooledThreadExecutor ( PooledThreadExecutor &&  )
delete

Member Function Documentation

◆ operator=() [1/2]

PooledThreadExecutor& Aws::Utils::Threading::PooledThreadExecutor::operator= ( const PooledThreadExecutor )
delete

◆ operator=() [2/2]

PooledThreadExecutor& Aws::Utils::Threading::PooledThreadExecutor::operator= ( PooledThreadExecutor &&  )
delete

◆ SubmitToThread()

bool Aws::Utils::Threading::PooledThreadExecutor::SubmitToThread ( std::function< void()> &&  )
overrideprotectedvirtual

To implement your own executor implementation, then simply subclass Executor and implement this method.

Implements Aws::Utils::Threading::Executor.

Friends And Related Function Documentation

◆ ThreadTask

friend class ThreadTask
friend

Definition at line 113 of file Executor.h.


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