[HLE/Kernel] Dispose the thread wait even on exit
This commit is contained in:
parent
76a5972378
commit
62b2124c03
1 changed files with 2 additions and 0 deletions
|
@ -161,6 +161,8 @@ namespace Ryujinx.Core.OsHle.Handles
|
||||||
if (AllThreads.TryRemove(Thread, out SchedulerThread SchedThread))
|
if (AllThreads.TryRemove(Thread, out SchedulerThread SchedThread))
|
||||||
{
|
{
|
||||||
WaitingToRun[Thread.ProcessorId].Remove(SchedThread);
|
WaitingToRun[Thread.ProcessorId].Remove(SchedThread);
|
||||||
|
|
||||||
|
SchedThread.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
SchedulerThread NewThread = WaitingToRun[Thread.ProcessorId].Pop();
|
SchedulerThread NewThread = WaitingToRun[Thread.ProcessorId].Pop();
|
||||||
|
|
Loading…
Reference in a new issue