AWS IoT Device SDK C++ v2: crt/aws-crt-cpp/include/aws/crt/io/EventLoopGroup.h Source File

AWS IoT Device SDK C++ v2 1.14.0 AWS IoT Device SDK C++ v2

EventLoopGroup.h
Go to the documentation of this file.
1#pragma once
6#include <aws/crt/Types.h>
7
8#include <aws/io/event_loop.h>
9
10namespace Aws
11{
12 namespace Crt
13 {
14 namespace Io
15 {
32 class AWS_CRT_CPP_API EventLoopGroup final
33 {
34 public:
39 EventLoopGroup(uint16_t threadCount = 0, Allocator *allocator = g_allocator) noexcept;
40 EventLoopGroup(uint16_t cpuGroup, uint16_t threadCount, Allocator *allocator = g_allocator) noexcept;
41 ~EventLoopGroup();
42 EventLoopGroup(const EventLoopGroup &) = delete;
43 EventLoopGroup(EventLoopGroup &&) noexcept;
44 EventLoopGroup &operator=(const EventLoopGroup &) = delete;
45 EventLoopGroup &operator=(EventLoopGroup &&) noexcept;
46
50 operator bool() const;
51
55 int LastError() const;
56
58 aws_event_loop_group *GetUnderlyingHandle() noexcept;
59
60 private:
61 aws_event_loop_group *m_eventLoopGroup;
62 int m_lastError;
63 };
64 } // namespace Io
65
66 } // namespace Crt
67} // namespace Aws
Types.h
Aws::Crt::Io::EventLoopGroup
Definition: EventLoopGroup.h:33
Aws::Crt::Io::EventLoopGroup::EventLoopGroup
EventLoopGroup(const EventLoopGroup &)=delete
AWS_CRT_CPP_API
#define AWS_CRT_CPP_API
Definition: Exports.h:37
Aws::Crt::Allocator
aws_allocator Allocator
Definition: StlAllocator.h:17
Aws::Crt::g_allocator
AWS_CRT_CPP_API Allocator * g_allocator
Definition: Api.cpp:21
Aws::Crt::LastError
AWS_CRT_CPP_API int LastError() noexcept
Definition: Api.cpp:315
Aws
Definition: Api.h:17