summaryrefslogtreecommitdiffstats
path: root/src/pulsecore
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore')
-rw-r--r--src/pulsecore/atomic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pulsecore/atomic.h b/src/pulsecore/atomic.h
index f789142d..8d608b5b 100644
--- a/src/pulsecore/atomic.h
+++ b/src/pulsecore/atomic.h
@@ -33,6 +33,8 @@ typedef struct pa_atomic_int {
volatile AO_t value;
} pa_atomic_int_t;
+#define PA_ATOMIC_INIT(v) { .value = (v) }
+
/* For now we do only full memory barriers. Eventually we might want
* to support more elaborate memory barriers, in which case we will add
* suffixes to the function names */