Namespaces
Records
Functions
-
template <typename Sink>void AbslStringify (Sink & s, const MemoryRequest & r)Defined at line 58 of file ../../third_party/grpc/src/include/grpc/event_engine/memory_request.h
-
template <typename Sink>void AbslStringify (Sink & out, const EventEngine::ConnectionHandle & handle)Defined at line 728 of file ../../third_party/grpc/src/include/grpc/event_engine/event_engine.h
-
template <typename Sink>void AbslStringify (Sink & out, const EventEngine::TaskHandle & handle)Defined at line 733 of file ../../third_party/grpc/src/include/grpc/event_engine/event_engine.h
-
void SetEventEngineFactory (absl::AnyInvocable<std::shared_ptr<EventEngine> ()> factory)[DEPRECATED] Replace gRPC's default EventEngine factory.
Applications may call
at any time to replace the
default factory used within gRPC. EventEngines will be created when
necessary, when they are otherwise not provided by the application.
To be certain that none of the gRPC-provided built-in EventEngines are
created, applications must set a custom EventEngine factory method *before*
grpc is initialized.
TODO(hork): delete once all known users have migrated away
-
void EventEngineFactoryReset ()[DEPRECATED] Reset gRPC's EventEngine factory to the built-in default.
Applications that have called
can remove their
custom factory using this method. The built-in EventEngine factories will be
used going forward. This has no affect on any EventEngines that were created
using the previous factories.
TODO(hork): delete once all known users have migrated away
-
std::shared_ptr<EventEngine> CreateEventEngine ()Create a new EventEngine instance.
-
void SetDefaultEventEngine (std::shared_ptr<EventEngine> engine)Set the default EventEngine instance, which will be used throughout gRPC
gRPC will hold a ref to this engine until either
is called or
is
called again with a different value. Passing a value of nullptr will cause
gRPC to drop the ref it was holding without setting it to a new one.
Earlier calls to
will still hold a ref to the
previous default engine instance, if any.
-
std::shared_ptr<EventEngine> GetDefaultEventEngine ()Returns the default EventEngine instance.
Note that if SetDefaultEventEngine() has not been called, then the default
EventEngine may be created and destroyed as needed, meaning that multiple
calls to GetDefaultEventEngine() over a process's lifetime may return
different instances. Callers are expected to call GetDefaultEventEngine()
once and hold the returned reference for as long as they need the
EventEngine instance.
-
void ShutdownDefaultEventEngine ()Resets gRPC to use one of the default internal EventEngines for all *new*
requests and blocks until all refs on the active
default engine have been released (destroying that engine).
If you called
you must call either
or
at the
end of your program. If you don't, the engine will never be destroyed.
If you want to reset the default engine to one of gRPC's internal versions
without waiting for all references to be released on the current default
engine, call
instead.
-
bool operator== (const EventEngine::TaskHandle & lhs, const EventEngine::TaskHandle & rhs) -
bool operator!= (const EventEngine::TaskHandle & lhs, const EventEngine::TaskHandle & rhs) -
std::ostream & operator<< (std::ostream & out, const EventEngine::TaskHandle & handle) -
bool operator== (const EventEngine::ConnectionHandle & lhs, const EventEngine::ConnectionHandle & rhs) -
bool operator!= (const EventEngine::ConnectionHandle & lhs, const EventEngine::ConnectionHandle & rhs) -
std::ostream & operator<< (std::ostream & out, const EventEngine::ConnectionHandle & handle) -
const grpc_arg_pointer_vtable * grpc_event_engine_arg_vtable ()Fetch a vtable for a grpc_channel_arg that points to a grpc_event_engine