From 9e9ff44b176578035be146f89c5a06258cb6a019 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 10 Jul 2008 20:36:28 -0700 Subject: Use volatile for member variables that are changed in a different thread --- Alc/alsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/alsa.c') diff --git a/Alc/alsa.c b/Alc/alsa.c index 95a1cf6f..ea42b7fc 100644 --- a/Alc/alsa.c +++ b/Alc/alsa.c @@ -40,7 +40,7 @@ typedef struct { ALvoid *buffer; ALsizei size; - int killNow; + volatile int killNow; ALvoid *thread; } alsa_data; -- cgit v1.2.3