Sync thread name on Schedule (ryubing/ryujinx!157)
See merge request ryubing/ryujinx!157
This commit is contained in:
parent
13878acdb2
commit
ef9810582a
2 changed files with 8 additions and 0 deletions
|
|
@ -293,6 +293,12 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
|
|||
KThread currentThread = KernelStatic.GetCurrentThread();
|
||||
KThread selectedThread = _state.SelectedThread;
|
||||
|
||||
if (!currentThread.IsThreadNamed && currentThread.GetThreadName() != "")
|
||||
{
|
||||
currentThread.HostThread.Name = $"<{currentThread.GetThreadName()}>";
|
||||
currentThread.IsThreadNamed = true;
|
||||
}
|
||||
|
||||
// If the thread is already scheduled and running on the core, we have nothing to do.
|
||||
if (currentThread == selectedThread)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -53,6 +53,8 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
|
|||
public ulong AffinityMask { get; set; }
|
||||
|
||||
public ulong ThreadUid { get; private set; }
|
||||
|
||||
public bool IsThreadNamed { get; set; }
|
||||
|
||||
private long _totalTimeRunning;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue