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
|
|
@ -55,7 +55,7 @@ void *pa_tls_set(pa_tls *t, void *userdata);
|
|||
#define PA_STATIC_TLS_DECLARE(name, free_cb) \
|
||||
static struct { \
|
||||
pa_once once; \
|
||||
pa_tls *tls; \
|
||||
pa_tls *volatile tls; \
|
||||
} name##_tls = { \
|
||||
.once = PA_ONCE_INIT, \
|
||||
.tls = NULL \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue