aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-03-04 10:12:42 -0800
committerGravatar David Garcia Quintas <dgq@google.com>2016-03-04 10:12:42 -0800
commite7aa84fe8f51c065fcd84421eef01a802c1013a9 (patch)
tree0010ac443c27fa17fea08d516565bc54671e2de5 /include
parent2a8c28037061b94c02eb05fb532e268709af88e5 (diff)
parentda0d46ed815724d0b665529ae3ad6a811aebc501 (diff)
Merge branch 'master' of github.com:grpc/grpc into limit_cores_includes
Diffstat (limited to 'include')
-rw-r--r--include/grpc/impl/codegen/sync.h4
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);