summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/thread.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-12 23:03:04 +0100
committerColin Guthrie <cguthrie@mandriva.org>2010-02-09 22:31:30 +0000
commit7f7455b1be68d2ff5706ccf85eff1a96f7c43d34 (patch)
treebd31a5f4767cb457a34b5f13701d97a992879a78 /src/pulsecore/thread.h
parent66ddeede9ea02cc97178d42c7be18067519eed8f (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 \