mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
once: make once related variables volatile
This commit is contained in:
parent
66ddeede9e
commit
7f7455b1be
4 changed files with 5 additions and 10 deletions
|
|
@ -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) { \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue