add static initializer PA_ATOMIC_INIT()

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1384 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2006-09-09 22:54:11 +00:00
parent b93fedd49c
commit c89cb6a00f

View file

@ -33,6 +33,8 @@ typedef struct pa_atomic_int {
volatile AO_t value; volatile AO_t value;
} pa_atomic_int_t; } pa_atomic_int_t;
#define PA_ATOMIC_INIT(v) { .value = (v) }
/* For now we do only full memory barriers. Eventually we might want /* For now we do only full memory barriers. Eventually we might want
* to support more elaborate memory barriers, in which case we will add * to support more elaborate memory barriers, in which case we will add
* suffixes to the function names */ * suffixes to the function names */