Revert "Clear thread local after use"

pull/20334/head
Yang Gao 5 years ago committed by GitHub
parent 5f11fae4d2
commit 4d19830a65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/lib/iomgr/executor.cc

@ -264,8 +264,6 @@ void Executor::ThreadMain(void* arg) {
grpc_core::ExecCtx::Get()->InvalidateNow(); grpc_core::ExecCtx::Get()->InvalidateNow();
subtract_depth = RunClosures(ts->name, closures); subtract_depth = RunClosures(ts->name, closures);
} }
// Clear the thread local after use.
gpr_tls_set(&g_this_thread_state, reinterpret_cast<intptr_t>(nullptr));
} }
void Executor::Enqueue(grpc_closure* closure, grpc_error* error, void Executor::Enqueue(grpc_closure* closure, grpc_error* error,

Loading…
Cancel
Save