diff options
author | 2016-03-03 10:11:16 -0800 | |
---|---|---|
committer | 2016-03-03 10:11:16 -0800 | |
commit | 44060b00498585658ca3a0d7f5ae0a8c0249007e (patch) | |
tree | ba0fac77baeb34d5eaffab626d23ae4221f16a37 /include | |
parent | 7f7181ffc5605de2dd571b8aabd51f5b04058137 (diff) | |
parent | 40d27ba78455d9c5ef1feef250d0d889d6bfb746 (diff) |
Merge branch 'master' of github.com:grpc/grpc into codegen_proto_utils_fix
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc/impl/codegen/sync.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/grpc/impl/codegen/sync.h b/include/grpc/impl/codegen/sync.h index d2f19d37d6..6fd7d64b29 100644 --- a/include/grpc/impl/codegen/sync.h +++ b/include/grpc/impl/codegen/sync.h @@ -182,6 +182,10 @@ GPRAPI void gpr_ref_init(gpr_refcount *r, int n); /* Increment the reference count *r. Requires *r initialized. */ GPRAPI void gpr_ref(gpr_refcount *r); +/* Increment the reference count *r. Requires *r initialized. + Crashes if refcount is zero */ +GPRAPI void gpr_ref_non_zero(gpr_refcount *r); + /* Increment the reference count *r by n. Requires *r initialized, n > 0. */ GPRAPI void gpr_refn(gpr_refcount *r, int n); |