Also add the missing implementation of grpc_iomgr_run_in_background()

for gevent.
pull/19454/head
Guantao Liu 5 years ago
parent 8f30132877
commit 7610817bc8
  1. 2
      src/core/lib/iomgr/iomgr_custom.cc
  2. 2
      src/core/lib/iomgr/iomgr_uv.cc

@ -72,6 +72,8 @@ void grpc_custom_iomgr_init(grpc_socket_vtable* socket,
grpc_set_iomgr_platform_vtable(&vtable);
}
bool grpc_iomgr_run_in_background() { return false; }
#ifdef GRPC_CUSTOM_SOCKET
grpc_iomgr_platform_vtable* grpc_default_iomgr_platform_vtable() {
return &vtable;

@ -37,6 +37,4 @@ void grpc_set_default_iomgr_platform() {
grpc_custom_iomgr_init(&grpc_uv_socket_vtable, &uv_resolver_vtable,
&uv_timer_vtable, &uv_pollset_vtable);
}
bool grpc_iomgr_run_in_background() { return false; }
#endif

Loading…
Cancel
Save