AWS SDK for C++

AWS SDK for C++ Version 1.11.793

Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Friends | List of all members
Aws::Utils::Threading::PooledThreadExecutor Class Reference

#include <PooledThreadExecutor.h>

Inheritance diagram for Aws::Utils::Threading::PooledThreadExecutor:
[legend]

Public Member Functions

 
 
 
 
 
 
void WaitUntilStopped () override
 

Public Member Functions inherited from Aws::Utils::Threading::Executor

virtual ~Executor ()=default
 
template<class Fn , class ... Args>
bool Submit (Fn &&fn, Args &&... args)
 
bool Submit (std::function< void()> &&callable)
 

Protected Member Functions

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

Friends

class ThreadTask
 

Detailed Description

Thread Pool Executor implementation.

Definition at line 34 of file PooledThreadExecutor.h.

Constructor & Destructor Documentation

◆ PooledThreadExecutor() [1/3]

Aws::Utils::Threading::PooledThreadExecutor::PooledThreadExecutor ( size_t  poolSize,
OverflowPolicy  overflowPolicy = OverflowPolicy::QUEUE_TASKS_EVENLY_ACROSS_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.

◆ WaitUntilStopped()

void Aws::Utils::Threading::PooledThreadExecutor::WaitUntilStopped ( )
overridevirtual

Call to ensure the threadpool can be safely destroyed. It blocks until all threads finished.

Reimplemented from Aws::Utils::Threading::Executor.

Friends And Related Symbol Documentation

◆ ThreadTask

friend class ThreadTask
friend

Definition at line 72 of file PooledThreadExecutor.h.


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