AWS SDK for C++
AWS SDK for C++ Version 1.11.440
Main Page
Related Pages
Namespaces
Classes
Modules
Search
Loading...
Searching...
No Matches
src
aws-cpp-sdk-core
include
aws
core
utils
threading
ThreadTask.h
1
6
#pragma once
7
8
#include <aws/core/Core_EXPORTS.h>
9
#include <functional>
10
#include <thread>
11
#include <atomic>
12
13
namespace
Aws
14
{
15
namespace
Utils
16
{
17
namespace
Threading
18
{
19
class
PooledThreadExecutor;
20
21
class
AWS_CORE_API
ThreadTask
22
{
23
public
:
24
ThreadTask
(
PooledThreadExecutor
& executor);
25
~ThreadTask
();
26
31
ThreadTask
(
const
ThreadTask
&) =
delete
;
32
ThreadTask
& operator =(
const
ThreadTask
&) =
delete
;
33
ThreadTask
(
ThreadTask
&&) =
delete
;
34
ThreadTask
& operator =(
ThreadTask
&&) =
delete
;
35
36
void
StopProcessingWork
();
37
38
protected
:
39
void
MainTaskRunner
();
40
41
private
:
42
std::atomic<bool> m_continue;
43
PooledThreadExecutor
& m_executor;
44
std::thread m_thread;
45
};
46
}
47
}
48
}
Aws::Utils::Threading::PooledThreadExecutor
Definition
PooledThreadExecutor.h:35
Aws::Utils::Threading::ThreadTask
Definition
ThreadTask.h:22
Aws::Utils::Threading::ThreadTask::ThreadTask
ThreadTask(const ThreadTask &)=delete
Aws::Utils::Threading::ThreadTask::MainTaskRunner
void MainTaskRunner()
Aws::Utils::Threading::ThreadTask::~ThreadTask
~ThreadTask()
Aws::Utils::Threading::ThreadTask::ThreadTask
ThreadTask(ThreadTask &&)=delete
Aws::Utils::Threading::ThreadTask::StopProcessingWork
void StopProcessingWork()
Aws::Utils::Threading::ThreadTask::ThreadTask
ThreadTask(PooledThreadExecutor &executor)
Aws
Definition
AmazonSerializableWebServiceRequest.h:16
Generated by
1.9.8
Privacy |
Site terms |
Cookie preferences