aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/surface/completion_queue.h
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-06-24 23:22:53 +0200
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-06-24 23:22:53 +0200
commitaaf39abb367a24b9fe9ccaa03f643d88075319e9 (patch)
treedfb1459db0bf852415436e531408475be50ba210 /src/core/surface/completion_queue.h
parent66daf23401dd96b3fc6097738b7abfa8a43b709a (diff)
Adding file and line number to cq debug refcount.
Diffstat (limited to 'src/core/surface/completion_queue.h')
-rw-r--r--src/core/surface/completion_queue.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/core/surface/completion_queue.h b/src/core/surface/completion_queue.h
index e76910c00b..1b9010f462 100644
--- a/src/core/surface/completion_queue.h
+++ b/src/core/surface/completion_queue.h
@@ -40,10 +40,14 @@
#include <grpc/grpc.h>
#ifdef GRPC_CQ_REF_COUNT_DEBUG
-void grpc_cq_internal_ref(grpc_completion_queue *cc, const char *reason);
-void grpc_cq_internal_unref(grpc_completion_queue *cc, const char *reason);
-#define GRPC_CQ_INTERNAL_REF(cc, reason) grpc_cq_internal_ref(cc, reason)
-#define GRPC_CQ_INTERNAL_UNREF(cc, reason) grpc_cq_internal_unref(cc, reason)
+void grpc_cq_internal_ref(grpc_completion_queue *cc, const char *reason,
+ const char *file, int line);
+void grpc_cq_internal_unref(grpc_completion_queue *cc, const char *reason,
+ const char *file, int line);
+#define GRPC_CQ_INTERNAL_REF(cc, reason) \
+ grpc_cq_internal_ref(cc, reason, __FILE__, __LINE__)
+#define GRPC_CQ_INTERNAL_UNREF(cc, reason) \
+ grpc_cq_internal_unref(cc, reason, __FILE__, __LINE__)
#else
void grpc_cq_internal_ref(grpc_completion_queue *cc);
void grpc_cq_internal_unref(grpc_completion_queue *cc);