diff options
author | Chris Robinson <[email protected]> | 2008-07-10 20:36:28 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-07-10 20:36:28 -0700 |
commit | 9e9ff44b176578035be146f89c5a06258cb6a019 (patch) | |
tree | 2447ca4ee5c26c164b3e88e88e2d0d44a110e11e /Alc | |
parent | f369be148f179161258cd789917f45c66faec428 (diff) |
Use volatile for member variables that are changed in a different thread
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/alsa.c | 2 | ||||
-rw-r--r-- | Alc/dsound.c | 2 | ||||
-rw-r--r-- | Alc/oss.c | 2 | ||||
-rw-r--r-- | Alc/wave.c | 2 |
4 files changed, 4 insertions, 4 deletions
@@ -40,7 +40,7 @@ typedef struct { ALvoid *buffer; ALsizei size; - int killNow; + volatile int killNow; ALvoid *thread; } alsa_data; diff --git a/Alc/dsound.c b/Alc/dsound.c index 06b8202b..7e5ea2cc 100644 --- a/Alc/dsound.c +++ b/Alc/dsound.c @@ -48,7 +48,7 @@ typedef struct { LPDIRECTSOUNDBUFFER DSpbuffer; LPDIRECTSOUNDBUFFER DSsbuffer; - int killNow; + volatile int killNow; ALvoid *thread; } DSoundData; @@ -52,7 +52,7 @@ static char *oss_device_capture; typedef struct { int fd; - int killNow; + volatile int killNow; ALvoid *thread; ALubyte *mix_data; @@ -35,7 +35,7 @@ typedef struct { ALvoid *buffer; ALuint size; - int killNow; + volatile int killNow; ALvoid *thread; } wave_data; |