0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-12-22 23:45:46 +00:00

[HLE/Kernel] Dispose the thread wait even on exit

This commit is contained in:
gdkchan 2018-04-19 01:01:03 -03:00
parent 76a5972378
commit 62b2124c03

View file

@ -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();