From a7cadaa835ca546fc1b4fdb346e5ae9e7bc1b5a0 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Fri, 23 Feb 2007 09:01:11 +0000 Subject: [PATCH] Simplify. --- stepmania/src/RageThreads.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/stepmania/src/RageThreads.cpp b/stepmania/src/RageThreads.cpp index 4bd00b1a0e..ba1a50e200 100644 --- a/stepmania/src/RageThreads.cpp +++ b/stepmania/src/RageThreads.cpp @@ -164,15 +164,12 @@ static void InitThreads() if( bInitialized ) return; - GetThreadSlotsLock().Lock(); + LockMut( GetThreadSlotsLock() ); /* Libraries might start threads on their own, which might call user callbacks, * which could come back here. Make sure we don't accidentally initialize twice. */ if( bInitialized ) - { - GetThreadSlotsLock().Unlock(); return; - } bInitialized = true; @@ -182,8 +179,6 @@ static void InitThreads() g_ThreadSlots[slot].m_iID = GetInvalidThreadId(); sprintf( g_ThreadSlots[slot].m_szThreadFormattedOutput, "Unknown thread" ); g_pUnknownThreadSlot = &g_ThreadSlots[slot]; - - GetThreadSlotsLock().Unlock(); }