From 01ea1dea07c5c7af2e65c054ce3615b4624483e9 Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Thu, 31 Oct 2019 17:38:45 -0700 Subject: [PATCH] libuv changes --- .../resolver/dns/c_ares/grpc_ares_ev_driver_libuv.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_libuv.cc b/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_libuv.cc index 7fb6cde600c..3d7140cb4b8 100644 --- a/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_libuv.cc +++ b/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_libuv.cc @@ -81,10 +81,12 @@ class GrpcPolledFdLibuv : public GrpcPolledFd { uv_poll_stop(handle_); uv_close(reinterpret_cast(handle_), ares_uv_poll_close_cb); if (read_closure_ != nullptr) { - ExecCtx::Run(DEBUG_LOCATION, read_closure_, GRPC_ERROR_CANCELLED); + grpc_core::ExecCtx::Run(DEBUG_LOCATION, read_closure_, + GRPC_ERROR_CANCELLED); } if (write_closure_ != nullptr) { - ExecCtx::Run(DEBUG_LOCATION, write_closure_, GRPC_ERROR_CANCELLED); + grpc_core::ExecCtx::Run(DEBUG_LOCATION, write_closure_, + GRPC_ERROR_CANCELLED); } } @@ -135,13 +137,13 @@ static void ares_uv_poll_cb_locked(void* arg, grpc_error* error) { } if (events & UV_READABLE) { GPR_ASSERT(polled_fd->read_closure_ != nullptr); - ExecCtx::Run(DEBUG_LOCATION, polled_fd->read_closure_, error); + grpc_core::ExecCtx::Run(DEBUG_LOCATION, polled_fd->read_closure_, error); polled_fd->read_closure_ = nullptr; polled_fd->poll_events_ &= ~UV_READABLE; } if (events & UV_WRITABLE) { GPR_ASSERT(polled_fd->write_closure_ != nullptr); - ExecCtx::Run(DEBUG_LOCATION, polled_fd->write_closure_, error); + grpc_core::ExecCtx::Run(DEBUG_LOCATION, polled_fd->write_closure_, error); polled_fd->write_closure_ = nullptr; polled_fd->poll_events_ &= ~UV_WRITABLE; }