summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/thread.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-12 23:03:04 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-12 23:03:04 +0100
commit73ae1fce001253677b7ab633f42d3c3300fe5cf5 (patch)
tree48e206cd2cf7dbed779d6a4cc77d55d73261305d /src/pulsecore/thread.h
parent15a3018bda8ee92393671ceaf272be418e95a81f (diff)
once: make once related variables volatile
Diffstat (limited to 'src/pulsecore/thread.h')
-rw-r--r--src/pulsecore/thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/thread.h b/src/pulsecore/thread.h
index 25eace63..60c1267b 100644
--- a/src/pulsecore/thread.h
+++ b/src/pulsecore/thread.h
@@ -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 \