grpc
src
core
lib
event_engine
default_event_engine_factory.cc
Go to the documentation of this file.
1
// Copyright 2022 The gRPC Authors
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
#include <
grpc/support/port_platform.h
>
15
16
#include <memory>
17
18
#include "absl/memory/memory.h"
19
20
#include <
grpc/event_engine/event_engine.h
>
21
22
#include "
src/core/lib/event_engine/event_engine_factory.h
"
23
#include "
src/core/lib/event_engine/iomgr_engine/iomgr_engine.h
"
24
25
namespace
grpc_event_engine
{
26
namespace
experimental {
27
28
std::unique_ptr<EventEngine>
DefaultEventEngineFactory
() {
29
return
absl::make_unique<IomgrEventEngine>();
30
}
31
32
}
// namespace experimental
33
}
// namespace grpc_event_engine
iomgr_engine.h
event_engine.h
grpc_event_engine::experimental::DefaultEventEngineFactory
std::unique_ptr< EventEngine > DefaultEventEngineFactory()
Create an EventEngine using the default factory provided at link time.
Definition:
default_event_engine_factory.cc:28
grpc_event_engine
Definition:
endpoint_config.h:24
event_engine_factory.h
port_platform.h
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:09