Avoid deadlock when adding Wiimotes
Signed-off-by: Jonathan Dieter <[email protected]>
This commit is contained in:
1 parent
5ac29e18ed
commit
4112794d4a
1 file changed
+1
-1
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user