Name all threads (#886)
* Name all threads Close #874 * use ThreadName instead of ThreadId in Logging
This commit is contained in:
parent
f0055482fd
commit
5facc0c07f
13 changed files with 60 additions and 29 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue