diff options
author | 2015-09-22 12:33:20 -0700 | |
---|---|---|
committer | 2015-09-22 12:33:20 -0700 | |
commit | a82950e68318a6aab6fe894fa39f7fa616c4647b (patch) | |
tree | 7d02bd1e9e1cbae1f14ad4ad1e06d3ae81a96dfe /src/core/iomgr/exec_ctx.c | |
parent | 8af4c337181322cc4fb396199c90f574cfb4163f (diff) |
clang-format all core files
Diffstat (limited to 'src/core/iomgr/exec_ctx.c')
-rw-r--r-- | src/core/iomgr/exec_ctx.c | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/src/core/iomgr/exec_ctx.c b/src/core/iomgr/exec_ctx.c index d5a8cf4475..fe8c48a94b 100644 --- a/src/core/iomgr/exec_ctx.c +++ b/src/core/iomgr/exec_ctx.c @@ -33,30 +33,28 @@ #include "src/core/iomgr/exec_ctx.h" -void -grpc_exec_ctx_flush (grpc_exec_ctx *exec_ctx) -{ - while (!grpc_closure_list_empty (exec_ctx->closure_list)) - { - grpc_closure *c = closure_list->head; - closure_list->head = closure_list->tail = NULL; - while (c != NULL) - { - grpc_closure *next = c->next; - c->cb (exec_ctx, c->cb_arg, c->success); - c = next; - } +void grpc_exec_ctx_flush(grpc_exec_ctx *exec_ctx) { + while (!grpc_closure_list_empty(exec_ctx->closure_list)) { + grpc_closure *c = closure_list->head; + closure_list->head = closure_list->tail = NULL; + while (c != NULL) { + grpc_closure *next = c->next; + c->cb(exec_ctx, c->cb_arg, c->success); + c = next; } + } } void grpc_exec_ctx_finish(grpc_exec_ctx *exec_ctx) { grpc_exec_ctx_flush(exec_ctx); } -void grpc_exec_ctx_enqueue(grpc_exec_ctx *exec_ctx, grpc_closure *closure, int success) { +void grpc_exec_ctx_enqueue(grpc_exec_ctx *exec_ctx, grpc_closure *closure, + int success) { grpc_closure_list_add(&exec_ctx->closure_list, closure, success); } -void grpc_exec_ctx_enqueue_list(grpc_exec_ctx *exec_ctx, grpc_closure_list *list) { +void grpc_exec_ctx_enqueue_list(grpc_exec_ctx *exec_ctx, + grpc_closure_list *list) { grpc_closure_list_move(list, &exec_ctx->closure_list); } |