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/null.c | |
parent | b9e30f76041a029e9d4cd58f6c87086c0b527d6d (diff) |
Rework threading functions
Diffstat (limited to 'Alc/backends/null.c')
-rw-r--r-- | Alc/backends/null.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/null.c b/Alc/backends/null.c index 73e3e8cb..9742424c 100644 --- a/Alc/backends/null.c +++ b/Alc/backends/null.c @@ -27,11 +27,12 @@ #include "alMain.h" #include "alu.h" +#include "threads.h" typedef struct { volatile int killNow; - ALvoid *thread; + althread_t thread; } null_data; @@ -112,8 +113,7 @@ static ALCboolean null_start_playback(ALCdevice *device) { null_data *data = (null_data*)device->ExtraData; - data->thread = StartThread(NullProc, device); - if(data->thread == NULL) + if(!StartThread(&data->thread, NullProc, device)) return ALC_FALSE; return ALC_TRUE; |