aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
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
#define AWS_CRT_CPP_API
Definition Exports.h:36
Definition EventLoopGroup.h:33
EventLoopGroup(const EventLoopGroup &)=delete
aws_allocator Allocator
Definition Allocator.h:14
AWS_CRT_CPP_API Allocator * ApiAllocator() noexcept
Definition Allocator.cpp:24
Definition Allocator.h:11