diff options
author | Craig Tiller <ctiller@google.com> | 2017-05-11 13:39:22 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-05-11 13:39:22 -0700 |
commit | de1682b1acb77f0578b5e3d1d4039ab8c1ef69d1 (patch) | |
tree | 9a2cfd68760ec2e31095ae423a99c8a92f79c697 /src/core/lib/iomgr/exec_ctx.c | |
parent | bf15d98a564b5ef3bfe540f63ba787312f12fe1d (diff) | |
parent | 45b89fb11ca3cd524787aeba7a1270f744a1256c (diff) |
Merge github.com:grpc/grpc into write_completion
Diffstat (limited to 'src/core/lib/iomgr/exec_ctx.c')
-rw-r--r-- | src/core/lib/iomgr/exec_ctx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/exec_ctx.c b/src/core/lib/iomgr/exec_ctx.c index 2532a708e7..318bb2b713 100644 --- a/src/core/lib/iomgr/exec_ctx.c +++ b/src/core/lib/iomgr/exec_ctx.c @@ -62,6 +62,11 @@ bool grpc_always_ready_to_finish(grpc_exec_ctx *exec_ctx, void *arg_ignored) { return true; } +bool grpc_exec_ctx_has_work(grpc_exec_ctx *exec_ctx) { + return exec_ctx->active_combiner != NULL || + !grpc_closure_list_empty(exec_ctx->closure_list); +} + bool grpc_exec_ctx_flush(grpc_exec_ctx *exec_ctx) { bool did_something = 0; GPR_TIMER_BEGIN("grpc_exec_ctx_flush", 0); |