AWS IoT Device SDK C++ v2 1.44.1
AWS IoT Device SDK C++ v2
Loading...
Searching...
No Matches
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 {
33 {
34 public:
40 EventLoopGroup(uint16_t threadCount = 0, Allocator *allocator = ApiAllocator()) noexcept;
47 EventLoopGroup(uint16_t cpuGroup, uint16_t threadCount, Allocator *allocator = ApiAllocator()) noexcept;
49 EventLoopGroup(const EventLoopGroup &) = delete;
50 EventLoopGroup(EventLoopGroup &&) noexcept;
51 EventLoopGroup &operator=(const EventLoopGroup &) = delete;
52 EventLoopGroup &operator=(EventLoopGroup &&) noexcept;
53
57 operator bool() const;
58
62 int LastError() const;
63
65 aws_event_loop_group *GetUnderlyingHandle() noexcept;
66
67 private:
68 aws_event_loop_group *m_eventLoopGroup;
69 int m_lastError;
70 };
71 } // namespace Io
72
73 } // namespace Crt
74} // namespace Aws
int LastError() const
Definition EventLoopGroup.cpp:57
EventLoopGroup(uint16_t threadCount=0, Allocator *allocator=ApiAllocator()) noexcept
Definition EventLoopGroup.cpp:14
EventLoopGroup(const EventLoopGroup &)=delete
#define AWS_CRT_CPP_API
Definition Exports.h:36
Definition Credentials.h:23
Definition Allocator.h:13
AWS_CRT_CPP_API Allocator * ApiAllocator() noexcept
Definition Allocator.cpp:24
aws_allocator Allocator
Definition Allocator.h:14
Definition Allocator.h:11