aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/iomgr/closure.h
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2015-10-07 16:12:35 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2015-10-07 16:12:35 -0700
commit4bc3463108a7675b24d6f826acf6b2f472a615f5 (patch)
tree9aeea070813981549fe3681186d03657d3f7bf33 /src/core/iomgr/closure.h
parent1485683fcd725169a9b8d9cd3f1dbf1706da6045 (diff)
Introducing grpc_executor, for all your threading needs
Diffstat (limited to 'src/core/iomgr/closure.h')
-rw-r--r--src/core/iomgr/closure.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/iomgr/closure.h b/src/core/iomgr/closure.h
index 982ffa4e1b..709ef1afe9 100644
--- a/src/core/iomgr/closure.h
+++ b/src/core/iomgr/closure.h
@@ -80,9 +80,18 @@ void grpc_closure_init(grpc_closure *closure, grpc_iomgr_cb_func cb,
#define GRPC_CLOSURE_LIST_INIT \
{ NULL, NULL }
+/** add \a closure to the end of \a list and set \a closure's success to \a
+ * success */
void grpc_closure_list_add(grpc_closure_list *list, grpc_closure *closure,
int success);
+
+/** append all closures from \a src to \a dst and empty \a src. */
void grpc_closure_list_move(grpc_closure_list *src, grpc_closure_list *dst);
+
+/** pop (return and remove) the head closure from \a list. */
+grpc_closure *grpc_closure_list_pop(grpc_closure_list *list);
+
+/** return whether \a list is empty. */
int grpc_closure_list_empty(grpc_closure_list list);
#endif /* GRPC_INTERNAL_CORE_IOMGR_CLOSURE_H */