diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-04-26 00:07:12 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-04-26 00:07:12 -0300 |
| commit | 81e74ebd8689ba7f7525e2da7bf814fccbe85ad0 (patch) | |
| tree | 9a244d0e855f84f6242d61d8afd4a850f45d84f2 | |
| parent | 2f1250ab04cc26f310283baeade82c09decffa82 (diff) | |
Remove thread from the threads list when it finishes, remove debug code
| -rw-r--r-- | Ryujinx.Core/OsHle/Kernel/SvcThreadSync.cs | 2 | ||||
| -rw-r--r-- | Ryujinx.Core/OsHle/Process.cs | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/Ryujinx.Core/OsHle/Kernel/SvcThreadSync.cs b/Ryujinx.Core/OsHle/Kernel/SvcThreadSync.cs index ec109b2d..e382cf75 100644 --- a/Ryujinx.Core/OsHle/Kernel/SvcThreadSync.cs +++ b/Ryujinx.Core/OsHle/Kernel/SvcThreadSync.cs @@ -43,8 +43,6 @@ namespace Ryujinx.Core.OsHle.Kernel KThread OwnerThread = Process.HandleTable.GetData<KThread>(OwnerThreadHandle); - Ns.Log.PrintDebug(LogClass.KernelSvc, "lock tid: " + OwnerThread.ThreadId.ToString()); - if (OwnerThread == null) { Ns.Log.PrintWarning(LogClass.KernelSvc, $"Invalid owner thread handle 0x{OwnerThreadHandle:x8}!"); diff --git a/Ryujinx.Core/OsHle/Process.cs b/Ryujinx.Core/OsHle/Process.cs index c3f934af..b8c08856 100644 --- a/Ryujinx.Core/OsHle/Process.cs +++ b/Ryujinx.Core/OsHle/Process.cs @@ -345,7 +345,7 @@ namespace Ryujinx.Core.OsHle { TlsSlots.TryRemove(GetTlsSlot(Thread.ThreadState.Tpidr), out _); - KThread KernelThread = GetThread(Thread.ThreadState.Tpidr); + Threads.TryRemove(Thread.ThreadState.Tpidr, out KThread KernelThread); Scheduler.RemoveThread(KernelThread); |
