diff options
author | Yash Tibrewal <yashkt@google.com> | 2017-12-07 21:09:11 -0800 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2017-12-07 21:09:11 -0800 |
commit | caaf416eba1390b1acc2f1735448277f69ee50b6 (patch) | |
tree | 89bbdd3f4ee5bf8916cd3a445ea97f49f95b1f68 /src/core/lib | |
parent | d6c292f17779771e665816f8f3a4cf366fc7012e (diff) |
virtual destructor in exec_ctx, remove unneeded flush in grpc_shutdown and remove grpc_exec_ctx from .pxi files in python
Diffstat (limited to 'src/core/lib')
-rw-r--r-- | src/core/lib/iomgr/exec_ctx.h | 2 | ||||
-rw-r--r-- | src/core/lib/surface/init.cc | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/core/lib/iomgr/exec_ctx.h b/src/core/lib/iomgr/exec_ctx.h index b0c1740155..dbb76af1eb 100644 --- a/src/core/lib/iomgr/exec_ctx.h +++ b/src/core/lib/iomgr/exec_ctx.h @@ -80,7 +80,7 @@ class ExecCtx { ExecCtx(uintptr_t fl) : flags_(fl) { Set(this); } /** Destructor */ - ~ExecCtx() { + virtual ~ExecCtx() { flags_ |= GRPC_EXEC_CTX_FLAG_IS_FINISHED; Flush(); Set(last_exec_ctx_); diff --git a/src/core/lib/surface/init.cc b/src/core/lib/surface/init.cc index c6ce235da7..0f40965f16 100644 --- a/src/core/lib/surface/init.cc +++ b/src/core/lib/surface/init.cc @@ -157,9 +157,6 @@ void grpc_init(void) { void grpc_shutdown(void) { int i; GRPC_API_TRACE("grpc_shutdown(void)", 0, ()); - if (grpc_core::ExecCtx::Get()) { - grpc_core::ExecCtx::Get()->Flush(); - } gpr_mu_lock(&g_init_mu); if (--g_initializations == 0) { { |