Revert "Use a static local flag to memorize whether the grpc event engine runs in background or not"

This reverts commit 9bbda894cb.
pull/17244/head
Guantao Liu 6 years ago
parent a7b24f511f
commit dc9ffa8034
  1. 5
      src/core/lib/iomgr/tcp_posix.cc

@ -260,10 +260,7 @@ static void notify_on_write(grpc_tcp* tcp) {
if (grpc_tcp_trace.enabled()) {
gpr_log(GPR_INFO, "TCP:%p notify_on_write", tcp);
}
static bool grpc_event_engine_run_in_background =
grpc_event_engine_run_in_background();
if (grpc_event_engine_run_in_background) {
if (grpc_event_engine_run_in_background()) {
// If there is a polling engine always running in the background, there is
// no need to run the backup poller.
GRPC_CLOSURE_INIT(&tcp->write_done_closure, tcp_handle_write, tcp,

Loading…
Cancel
Save