forked from Mirror/Ryujinx
kernel: Fix deadlock when pinning in interrupt handler (#2999)
* kernel: Fix deadlock when pinning in interrupt handler This fix a deadlock on DoDonPachi Resurrection when starting a new game * Address gdkchan's comment
This commit is contained in:
parent
bd215e447d
commit
929a97d432
1 changed files with 2 additions and 6 deletions
|
@ -761,14 +761,10 @@ namespace Ryujinx.HLE.HOS.Kernel.Process
|
||||||
|
|
||||||
currentThread.SetUserInterruptFlag();
|
currentThread.SetUserInterruptFlag();
|
||||||
|
|
||||||
if (currentThread.IsSchedulable)
|
|
||||||
{
|
|
||||||
KernelContext.Schedulers[currentThread.CurrentCore].Schedule();
|
|
||||||
}
|
|
||||||
|
|
||||||
KernelContext.CriticalSection.Leave();
|
KernelContext.CriticalSection.Leave();
|
||||||
}
|
}
|
||||||
else if (currentThread.IsSchedulable)
|
|
||||||
|
if (currentThread.IsSchedulable)
|
||||||
{
|
{
|
||||||
KernelContext.Schedulers[currentThread.CurrentCore].Schedule();
|
KernelContext.Schedulers[currentThread.CurrentCore].Schedule();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue