diff options
author | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2015-10-07 11:02:22 -0700 |
---|---|---|
committer | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2015-10-07 11:02:22 -0700 |
commit | 7329b948086b0402f3791455df200ea816bb8991 (patch) | |
tree | 1dc8cf94477277b658a82beef2d075a053248853 /src/core/iomgr/closure.h | |
parent | a3bb7f87b396157270cb0c2046744edbfcb150a5 (diff) | |
parent | 89a768e2b14adc35bddda2de2aa367286f1a7100 (diff) |
Merge pull request #3647 from ctiller/smash-it
Fix connectivity tests under Windows
Diffstat (limited to 'src/core/iomgr/closure.h')
-rw-r--r-- | src/core/iomgr/closure.h | 3 |
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 } |