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/solaris.c | |
parent | b9e30f76041a029e9d4cd58f6c87086c0b527d6d (diff) |
Rework threading functions
Diffstat (limited to 'Alc/backends/solaris.c')
-rw-r--r-- | Alc/backends/solaris.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Alc/backends/solaris.c b/Alc/backends/solaris.c index b9288197..c6fd32e9 100644 --- a/Alc/backends/solaris.c +++ b/Alc/backends/solaris.c @@ -33,6 +33,7 @@ #include "alMain.h" #include "alu.h" +#include "threads.h" #include <sys/audioio.h> @@ -43,11 +44,12 @@ static const char *solaris_driver = "/dev/audio"; typedef struct { int fd; - volatile int killNow; - ALvoid *thread; ALubyte *mix_data; int data_size; + + volatile int killNow; + althread_t thread; } solaris_data; @@ -208,8 +210,7 @@ static ALCboolean solaris_start_playback(ALCdevice *device) data->data_size = device->UpdateSize * FrameSizeFromDevFmt(device->FmtChans, device->FmtType); data->mix_data = calloc(1, data->data_size); - data->thread = StartThread(SolarisProc, device); - if(data->thread == NULL) + if(!StartThread(&data->thread, SolarisProc, device)) { free(data->mix_data); data->mix_data = NULL; |