Merge pull request #2362 from jdieter/master

Avoid deadlock when adding Wiimotes
This commit is contained in:
skidau 2015-05-06 12:30:54 +10:00
commit 41f168373b

View file

@ -150,9 +150,9 @@ bool CCPU::PauseAndLock(bool doLock, bool unpauseOnUnlock)
if (doLock) if (doLock)
{ {
// we can't use EnableStepping, that would causes deadlocks with both audio and video // we can't use EnableStepping, that would causes deadlocks with both audio and video
PowerPC::Pause();
if (!Core::IsCPUThread()) if (!Core::IsCPUThread())
m_csCpuOccupied.lock(); m_csCpuOccupied.lock();
PowerPC::Pause();
} }
else else
{ {