aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/iomgr/closure.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/iomgr/closure.h')
-rw-r--r--src/core/iomgr/closure.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/iomgr/closure.h b/src/core/iomgr/closure.h
index 982ffa4e1b..d812659af0 100644
--- a/src/core/iomgr/closure.h
+++ b/src/core/iomgr/closure.h
@@ -77,6 +77,9 @@ struct grpc_closure {
void grpc_closure_init(grpc_closure *closure, grpc_iomgr_cb_func cb,
void *cb_arg);
+/* Create a heap allocated closure: try to avoid except for very rare events */
+grpc_closure *grpc_closure_create(grpc_iomgr_cb_func cb, void *cb_arg);
+
#define GRPC_CLOSURE_LIST_INIT \
{ NULL, NULL }