AWS SDK for C++

AWS SDK for C++ Version 1.11.805

Loading...
Searching...
No Matches
SameThreadExecutor.h
1
6#pragma once
7
8#include <aws/core/utils/threading/Executor.h>
9
10#include <aws/core/utils/memory/stl/AWSList.h>
11#include <functional>
12
13namespace Aws
14{
15 namespace Utils
16 {
17 namespace Threading
18 {
23 class AWS_CORE_API SameThreadExecutor : public Executor
24 {
25 public:
27 void WaitUntilStopped() override;
28 protected:
29 bool SubmitToThread(std::function<void()>&& task) override;
30
31 using TaskFunc = std::function<void()>;
33 };
34 } // namespace Threading
35 } // namespace Utils
36} // namespace Aws
bool SubmitToThread(std::function< void()> &&task) override
std::list< T, Aws::Allocator< T > > List
Definition AWSList.h:17