once: make once related variables volatile

This commit is contained in:
Lennart Poettering 2010-01-12 23:03:04 +01:00 committed by Colin Guthrie
parent 66ddeede9e
commit 7f7455b1be
4 changed files with 5 additions and 10 deletions

View file

@ -45,7 +45,7 @@ void* pa_flist_pop(pa_flist*l);
#define PA_STATIC_FLIST_DECLARE(name, size, free_cb) \
static struct { \
pa_flist *flist; \
pa_flist *volatile flist; \
pa_once once; \
} name##_flist = { NULL, PA_ONCE_INIT }; \
static void name##_flist_init(void) { \