diff options
author | Chris Robinson <[email protected]> | 2013-10-27 08:14:13 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-10-27 08:14:13 -0700 |
commit | 8ceb800defbf13354866cd7c6a4b676cf54aad5d (patch) | |
tree | e46b00b1fe38403173b28566cbcb2d421a4d9ca9 /Alc/backends/wave.c | |
parent | b9e30f76041a029e9d4cd58f6c87086c0b527d6d (diff) |
Rework threading functions
Diffstat (limited to 'Alc/backends/wave.c')
-rw-r--r-- | Alc/backends/wave.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/wave.c b/Alc/backends/wave.c index ce827fe8..6245ef43 100644 --- a/Alc/backends/wave.c +++ b/Alc/backends/wave.c @@ -29,6 +29,7 @@ #include "alMain.h" #include "alu.h" +#include "threads.h" typedef struct { @@ -39,7 +40,7 @@ typedef struct { ALuint size; volatile int killNow; - ALvoid *thread; + althread_t thread; } wave_data; @@ -288,8 +289,7 @@ static ALCboolean wave_start_playback(ALCdevice *device) return ALC_FALSE; } - data->thread = StartThread(WaveProc, device); - if(data->thread == NULL) + if(!StartThread(&data->thread, WaveProc, device)) { free(data->buffer); data->buffer = NULL; |