aws-crt-cpp
EventLoopGroup.h
Go to the documentation of this file.
1 #pragma once
2 /*
3  * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License").
6  * You may not use this file except in compliance with the License.
7  * A copy of the License is located at
8  *
9  * http://aws.amazon.com/apache2.0
10  *
11  * or in the "license" file accompanying this file. This file is distributed
12  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13  * express or implied. See the License for the specific language governing
14  * permissions and limitations under the License.
15  */
16 #include <aws/crt/Types.h>
17 
18 #include <aws/io/event_loop.h>
19 
20 namespace Aws
21 {
22  namespace Crt
23  {
24  namespace Io
25  {
43  {
44  public:
49  EventLoopGroup(uint16_t threadCount = 0, Allocator *allocator = g_allocator) noexcept;
50  ~EventLoopGroup();
51  EventLoopGroup(const EventLoopGroup &) = delete;
52  EventLoopGroup(EventLoopGroup &&) noexcept;
53  EventLoopGroup &operator=(const EventLoopGroup &) = delete;
54  EventLoopGroup &operator=(EventLoopGroup &&) noexcept;
58  operator bool() const;
62  int LastError() const;
64  aws_event_loop_group *GetUnderlyingHandle() noexcept;
65 
66  private:
67  aws_event_loop_group m_eventLoopGroup;
68  int m_lastError;
69  };
70  } // namespace Io
71 
72  } // namespace Crt
73 } // namespace Aws
Aws::Crt::Allocator
aws_allocator Allocator
Definition: StlAllocator.h:25
Types.h
AWS_CRT_CPP_API
#define AWS_CRT_CPP_API
Definition: Exports.h:34
Aws::Crt::g_allocator
Allocator * g_allocator
Definition: Api.cpp:28
Aws::Crt::LastError
AWS_CRT_CPP_API int LastError() noexcept
Definition: Api.cpp:116
Aws::Crt::Io::EventLoopGroup
Definition: EventLoopGroup.h:43
Aws::Crt::Io::EventLoopGroup::EventLoopGroup
EventLoopGroup(const EventLoopGroup &)=delete
Aws
Definition: Api.h:25