From c89cb6a00f6ab862a047db1124486492e5e59f83 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 9 Sep 2006 22:54:11 +0000 Subject: add static initializer PA_ATOMIC_INIT() git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1384 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/pulsecore/atomic.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/pulsecore/atomic.h') 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 */ -- cgit