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

@ -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 \