mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-23 09:15:46 +00:00
Remove thread from the threads list when it finishes, remove debug code
This commit is contained in:
parent
2f1250ab04
commit
81e74ebd86
2 changed files with 1 additions and 3 deletions
|
@ -43,8 +43,6 @@ namespace Ryujinx.Core.OsHle.Kernel
|
||||||
|
|
||||||
KThread OwnerThread = Process.HandleTable.GetData<KThread>(OwnerThreadHandle);
|
KThread OwnerThread = Process.HandleTable.GetData<KThread>(OwnerThreadHandle);
|
||||||
|
|
||||||
Ns.Log.PrintDebug(LogClass.KernelSvc, "lock tid: " + OwnerThread.ThreadId.ToString());
|
|
||||||
|
|
||||||
if (OwnerThread == null)
|
if (OwnerThread == null)
|
||||||
{
|
{
|
||||||
Ns.Log.PrintWarning(LogClass.KernelSvc, $"Invalid owner thread handle 0x{OwnerThreadHandle:x8}!");
|
Ns.Log.PrintWarning(LogClass.KernelSvc, $"Invalid owner thread handle 0x{OwnerThreadHandle:x8}!");
|
||||||
|
|
|
@ -345,7 +345,7 @@ namespace Ryujinx.Core.OsHle
|
||||||
{
|
{
|
||||||
TlsSlots.TryRemove(GetTlsSlot(Thread.ThreadState.Tpidr), out _);
|
TlsSlots.TryRemove(GetTlsSlot(Thread.ThreadState.Tpidr), out _);
|
||||||
|
|
||||||
KThread KernelThread = GetThread(Thread.ThreadState.Tpidr);
|
Threads.TryRemove(Thread.ThreadState.Tpidr, out KThread KernelThread);
|
||||||
|
|
||||||
Scheduler.RemoveThread(KernelThread);
|
Scheduler.RemoveThread(KernelThread);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue