From 7fdbfa48797645e777e142fdf74254725f726171 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 27 Jul 2003 03:10:44 +0000 Subject: [PATCH] use RageThread --- stepmania/src/arch/Sound/RageSoundDriver_Null.cpp | 5 +++-- stepmania/src/arch/Sound/RageSoundDriver_Null.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp b/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp index 674a98be02..a66137909b 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_Null.cpp @@ -140,7 +140,8 @@ RageSound_Null::RageSound_Null() { shutdown = false; - MixerThreadPtr = SDL_CreateThread(MixerThread_start, this); + MixingThread.SetName( "RageSound_Null" ); + MixingThread.Create( MixerThread_start, this ); } RageSound_Null::~RageSound_Null() @@ -148,7 +149,7 @@ RageSound_Null::~RageSound_Null() /* Signal the mixing thread to quit. */ shutdown = true; LOG->Trace("Shutting down mixer thread ..."); - SDL_WaitThread(MixerThreadPtr, NULL); + MixingThread.Wait(); LOG->Trace("Mixer thread shut down."); } diff --git a/stepmania/src/arch/Sound/RageSoundDriver_Null.h b/stepmania/src/arch/Sound/RageSoundDriver_Null.h index 0aea8926c1..314acb38f9 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_Null.h +++ b/stepmania/src/arch/Sound/RageSoundDriver_Null.h @@ -30,7 +30,7 @@ private: vector sounds; bool shutdown; - SDL_Thread *MixerThreadPtr; + RageThread MixingThread; static int MixerThread_start(void *p); void MixerThread();