From cd1661a82b98e5008938a93b53304034bd164d71 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Tue, 24 May 2022 14:00:15 -0400 Subject: [PATCH] Make ExecCtx::Set private (#29771) This was made public in 539f506, but all non-private usages have been removed. The comment was never moved, so it is already in the correct place. --- src/core/lib/iomgr/exec_ctx.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/lib/iomgr/exec_ctx.h b/src/core/lib/iomgr/exec_ctx.h index 2c9e2147543..21db4fa1b5a 100644 --- a/src/core/lib/iomgr/exec_ctx.h +++ b/src/core/lib/iomgr/exec_ctx.h @@ -204,8 +204,6 @@ class ExecCtx { /** Gets pointer to current exec_ctx. */ static ExecCtx* Get() { return exec_ctx_; } - static void Set(ExecCtx* exec_ctx) { exec_ctx_ = exec_ctx; } - static void Run(const DebugLocation& location, grpc_closure* closure, grpc_error_handle error); @@ -220,6 +218,7 @@ class ExecCtx { private: /** Set exec_ctx_ to exec_ctx. */ + static void Set(ExecCtx* exec_ctx) { exec_ctx_ = exec_ctx; } grpc_closure_list closure_list_ = GRPC_CLOSURE_LIST_INIT; CombinerData combiner_data_ = {nullptr, nullptr};