Small tweak to get to compile under GCC (Unix/MacOS)

This commit is contained in:
Nik Henson 2012-07-24 20:37:40 +00:00
parent a3c15e8208
commit 08d347ccc7

View file

@ -2488,6 +2488,7 @@ void CModel3::AudioCallback(void *data)
bool CModel3::WakeSoundBoardThread(void)
{
// Enter sound board notify critical section
bool wake;
if (!sndBrdNotifyLock->Lock())
goto ThreadError;
@ -2496,7 +2497,7 @@ bool CModel3::WakeSoundBoardThread(void)
goto ThreadError;
// See if sound board thread is currently running
bool wake = !sndBrdThreadRunning;
wake = !sndBrdThreadRunning;
// Leave main notify critical section
if (!notifyLock->Unlock())
@ -2570,10 +2571,11 @@ int CModel3::RunSoundBoardThread(void)
while (true)
{
// Enter main notify critical section
bool paused;
if (!notifyLock->Lock())
goto ThreadError;
bool paused = pauseThreads;
paused = pauseThreads;
// Leave main notify critical section
if (!notifyLock->Unlock())