diff options
author | 2016-09-01 15:08:08 -0700 | |
---|---|---|
committer | 2016-09-01 15:08:08 -0700 | |
commit | de2c41c394770fd87f5e406af5dfe70ba6656b4c (patch) | |
tree | a106842cc98f1dcde26013b26de9f8cf4697306e /src/core/lib/iomgr/exec_ctx.c | |
parent | df1d3da924a746cebce263ce3aa37027a13f55ce (diff) |
Call closures directly where safe
Diffstat (limited to 'src/core/lib/iomgr/exec_ctx.c')
-rw-r--r-- | src/core/lib/iomgr/exec_ctx.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/lib/iomgr/exec_ctx.c b/src/core/lib/iomgr/exec_ctx.c index eec32a4f26..a3c40e8092 100644 --- a/src/core/lib/iomgr/exec_ctx.c +++ b/src/core/lib/iomgr/exec_ctx.c @@ -67,12 +67,8 @@ bool grpc_exec_ctx_flush(grpc_exec_ctx *exec_ctx) { exec_ctx->closure_list.head = exec_ctx->closure_list.tail = NULL; while (c != NULL) { grpc_closure *next = c->next_data.next; - grpc_error *error = c->error_data.error; did_something = true; - GPR_TIMER_BEGIN("grpc_exec_ctx_flush.cb", 0); - c->cb(exec_ctx, c->cb_arg, error); - GRPC_ERROR_UNREF(error); - GPR_TIMER_END("grpc_exec_ctx_flush.cb", 0); + grpc_closure_run(exec_ctx, c, c->error_data.error); c = next; } continue; |