aboutsummaryrefslogtreecommitdiff
path: root/src/core/pipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/pipe.c')
-rw-r--r--src/core/pipe.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/pipe.c b/src/core/pipe.c
index 5ce85420..94520c39 100644
--- a/src/core/pipe.c
+++ b/src/core/pipe.c
@@ -99,6 +99,12 @@ nni_pipe_rele(nni_pipe *p)
nni_refcnt_rele(&p->p_refcnt);
}
+void
+nni_pipe_hold(nni_pipe *p)
+{
+ nni_refcnt_hold(&p->p_refcnt);
+}
+
// nni_pipe_id returns the 32-bit pipe id, which can be used in backtraces.
uint32_t
nni_pipe_id(nni_pipe *p)