summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-05-15 17:58:26 +0000
committerLennart Poettering <lennart@poettering.net>2008-05-15 17:58:26 +0000
commit1b7157a8d64ae4a389346805cb7a74c4bf50c19c (patch)
treee870a4860c8549bb6e1b9ad8bdb35573759d09ec
parent689528045e63843040ea2db24bc027224b342368 (diff)
add PA_REFCNT_INIT_ZERO
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2425 fefdeb5f-60dc-0310-8127-8f9354f1896f
-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)