From 7f7455b1be68d2ff5706ccf85eff1a96f7c43d34 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 12 Jan 2010 23:03:04 +0100 Subject: once: make once related variables volatile --- src/pulsecore/thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pulsecore/thread.h') 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 \ -- cgit