Name all threads (#886)

* Name all threads

Close #874

* use ThreadName instead of ThreadId in Logging
This commit is contained in:
Ac_K 2020-01-13 01:21:54 +01:00 committed by Thog
parent f0055482fd
commit 5facc0c07f
13 changed files with 60 additions and 29 deletions

View file

@ -159,7 +159,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
is64Bits = true;
}
HostThread = new Thread(customHostThreadStart == null ? () => ThreadStart(entrypoint) : customHostThreadStart);
HostThread = new Thread(customHostThreadStart ?? (() => ThreadStart(entrypoint)));
Context = new ARMeilleure.State.ExecutionContext();
@ -185,7 +185,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
ThreadUid = System.GetThreadUid();
HostThread.Name = $"Host Thread (thread id {ThreadUid})";
HostThread.Name = $"HLE.HostThread.{ThreadUid}";
_hasBeenInitialized = true;