Address gdk's comments
This commit is contained in:
parent
c24b2ad346
commit
68d1599a39
2 changed files with 4 additions and 2 deletions
|
@ -998,6 +998,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Process
|
|||
lock (_threadingLock)
|
||||
{
|
||||
System.CriticalSection.Enter();
|
||||
|
||||
foreach (KThread thread in _threads)
|
||||
{
|
||||
if ((thread.SchedFlags & ThreadSchedState.LowMask) != ThreadSchedState.TerminationPending)
|
||||
|
@ -1005,6 +1006,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Process
|
|||
thread.PrepareForTermination();
|
||||
}
|
||||
}
|
||||
|
||||
System.CriticalSection.Leave();
|
||||
}
|
||||
|
||||
|
|
|
@ -31,10 +31,10 @@ namespace Ryujinx.HLE.HOS.Kernel.SupervisorCall
|
|||
|
||||
svcFunc(this, context);
|
||||
|
||||
PostSvcHandler(context);
|
||||
PostSvcHandler();
|
||||
}
|
||||
|
||||
private void PostSvcHandler(ExecutionContext context)
|
||||
private void PostSvcHandler()
|
||||
{
|
||||
KThread currentThread = _system.Scheduler.GetCurrentThread();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue