diff options
author | 2017-12-08 00:07:31 -0800 | |
---|---|---|
committer | 2017-12-08 00:07:31 -0800 | |
commit | 9e5dc246eebdc3b7c7dc4d75f35d3697bee90d9a (patch) | |
tree | 6c0b14189021c2d175c942e61170651a95ce3724 /src/core/lib/iomgr/exec_ctx.h | |
parent | caaf416eba1390b1acc2f1735448277f69ee50b6 (diff) |
Disallow delete on ExecCtx
Diffstat (limited to 'src/core/lib/iomgr/exec_ctx.h')
-rw-r--r-- | src/core/lib/iomgr/exec_ctx.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/exec_ctx.h b/src/core/lib/iomgr/exec_ctx.h index dbb76af1eb..8f8d518def 100644 --- a/src/core/lib/iomgr/exec_ctx.h +++ b/src/core/lib/iomgr/exec_ctx.h @@ -177,6 +177,9 @@ on outside context */ /** Check if ready to finish */ virtual bool CheckReadyToFinish() { return false; } + /** Disallow delete on ExecCtx */ + static void operator delete(void* p) { abort(); } + private: /** Set exec_ctx_ to exec_ctx */ void Set(ExecCtx* exec_ctx) { |