diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-12 23:03:04 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-12 23:03:04 +0100 |
commit | 73ae1fce001253677b7ab633f42d3c3300fe5cf5 (patch) | |
tree | 48e206cd2cf7dbed779d6a4cc77d55d73261305d /src/pulsecore/thread.h | |
parent | 15a3018bda8ee92393671ceaf272be418e95a81f (diff) |
once: make once related variables volatile
Diffstat (limited to 'src/pulsecore/thread.h')
-rw-r--r-- | src/pulsecore/thread.h | 2 |
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 \ |