diff options
author | 2018-03-13 15:28:39 -0700 | |
---|---|---|
committer | 2018-03-13 15:28:39 -0700 | |
commit | 7518ce9773e5690bb22b74bfed2def73235f6cf3 (patch) | |
tree | 0e7d2d54c224b8b65c6f9176c17c2b97eead5796 /src/core/lib/iomgr/exec_ctx.h | |
parent | 21a64df89739229b0befe5bef1edd731676619bb (diff) | |
parent | fc0d0e75724169511714e56780e45efcdf321bcd (diff) |
Merge pull request #14599 from kpayson64/abstract_libuv_stuff
Abstract libuv event loop
Diffstat (limited to 'src/core/lib/iomgr/exec_ctx.h')
-rw-r--r-- | src/core/lib/iomgr/exec_ctx.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/lib/iomgr/exec_ctx.h b/src/core/lib/iomgr/exec_ctx.h index 678ca1e5ac..72d0ae58c1 100644 --- a/src/core/lib/iomgr/exec_ctx.h +++ b/src/core/lib/iomgr/exec_ctx.h @@ -180,6 +180,10 @@ on outside context */ return reinterpret_cast<ExecCtx*>(gpr_tls_get(&exec_ctx_)); } + static void Set(ExecCtx* exec_ctx) { + gpr_tls_set(&exec_ctx_, reinterpret_cast<intptr_t>(exec_ctx)); + } + protected: /** Check if ready to finish */ virtual bool CheckReadyToFinish() { return false; } @@ -189,9 +193,6 @@ on outside context */ private: /** Set exec_ctx_ to exec_ctx */ - void Set(ExecCtx* exec_ctx) { - gpr_tls_set(&exec_ctx_, reinterpret_cast<intptr_t>(exec_ctx)); - } grpc_closure_list closure_list_ = GRPC_CLOSURE_LIST_INIT; CombinerData combiner_data_ = {nullptr, nullptr}; |