summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/refcnt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore/refcnt.h')
-rw-r--r--src/pulsecore/refcnt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pulsecore/refcnt.h b/src/pulsecore/refcnt.h
index 64271ab2..f0885fb4 100644
--- a/src/pulsecore/refcnt.h
+++ b/src/pulsecore/refcnt.h
@@ -32,6 +32,9 @@
#define PA_REFCNT_INIT(p) \
pa_atomic_store(&(p)->_ref, 1)
+#define PA_REFCNT_INIT_ZERO(p) \
+ pa_atomic_store(&(p)->_ref, 0)
+
#define PA_REFCNT_INC(p) \
pa_atomic_inc(&(p)->_ref)