parent
88f78ae6c8
commit
be69a2cefc
10 changed files with 37 additions and 11 deletions
|
@ -58,9 +58,12 @@ namespace ARMeilleure.Translation
|
||||||
{
|
{
|
||||||
if (Interlocked.Increment(ref _threadCount) == 1)
|
if (Interlocked.Increment(ref _threadCount) == 1)
|
||||||
{
|
{
|
||||||
Thread backgroundTranslatorThread = new Thread(TranslateQueuedSubs);
|
Thread backgroundTranslatorThread = new Thread(TranslateQueuedSubs)
|
||||||
|
{
|
||||||
|
Name = "CPU.BackgroundTranslatorThread",
|
||||||
|
Priority = ThreadPriority.Lowest
|
||||||
|
};
|
||||||
|
|
||||||
backgroundTranslatorThread.Priority = ThreadPriority.Lowest;
|
|
||||||
backgroundTranslatorThread.Start();
|
backgroundTranslatorThread.Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,10 @@ namespace Ryujinx.Audio
|
||||||
_context = new AudioContext();
|
_context = new AudioContext();
|
||||||
_tracks = new ConcurrentDictionary<int, OpenALAudioTrack>();
|
_tracks = new ConcurrentDictionary<int, OpenALAudioTrack>();
|
||||||
_keepPolling = true;
|
_keepPolling = true;
|
||||||
_audioPollerThread = new Thread(AudioPollerWork);
|
_audioPollerThread = new Thread(AudioPollerWork)
|
||||||
|
{
|
||||||
|
Name = "Audio.PollerThread"
|
||||||
|
};
|
||||||
|
|
||||||
_audioPollerThread.Start();
|
_audioPollerThread.Start();
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,6 +57,7 @@ namespace Ryujinx.Common.Logging
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
_messageThread.Name = "Logger.MessageThread";
|
||||||
_messageThread.IsBackground = true;
|
_messageThread.IsBackground = true;
|
||||||
_messageThread.Start();
|
_messageThread.Start();
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,10 @@ namespace Ryujinx.HLE.HOS.Kernel.Common
|
||||||
|
|
||||||
_keepRunning = true;
|
_keepRunning = true;
|
||||||
|
|
||||||
Thread work = new Thread(WaitAndCheckScheduledObjects);
|
Thread work = new Thread(WaitAndCheckScheduledObjects)
|
||||||
|
{
|
||||||
|
Name = "HLE.TimeManager"
|
||||||
|
};
|
||||||
|
|
||||||
work.Start();
|
work.Start();
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,10 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
|
||||||
|
|
||||||
public void StartAutoPreemptionThread()
|
public void StartAutoPreemptionThread()
|
||||||
{
|
{
|
||||||
Thread preemptionThread = new Thread(PreemptCurrentThread);
|
Thread preemptionThread = new Thread(PreemptCurrentThread)
|
||||||
|
{
|
||||||
|
Name = "HLE.PreemptionThread"
|
||||||
|
};
|
||||||
|
|
||||||
_keepPreempting = true;
|
_keepPreempting = true;
|
||||||
|
|
||||||
|
|
|
@ -159,7 +159,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
|
||||||
is64Bits = true;
|
is64Bits = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
HostThread = new Thread(customHostThreadStart == null ? () => ThreadStart(entrypoint) : customHostThreadStart);
|
HostThread = new Thread(customHostThreadStart ?? (() => ThreadStart(entrypoint)));
|
||||||
|
|
||||||
Context = new ARMeilleure.State.ExecutionContext();
|
Context = new ARMeilleure.State.ExecutionContext();
|
||||||
|
|
||||||
|
@ -185,7 +185,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
|
||||||
|
|
||||||
ThreadUid = System.GetThreadUid();
|
ThreadUid = System.GetThreadUid();
|
||||||
|
|
||||||
HostThread.Name = $"Host Thread (thread id {ThreadUid})";
|
HostThread.Name = $"HLE.HostThread.{ThreadUid}";
|
||||||
|
|
||||||
_hasBeenInitialized = true;
|
_hasBeenInitialized = true;
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,10 @@ namespace Ryujinx.Profiler
|
||||||
_cleanupRunning = true;
|
_cleanupRunning = true;
|
||||||
|
|
||||||
// Create cleanup thread.
|
// Create cleanup thread.
|
||||||
_cleanupThread = new Thread(CleanupLoop);
|
_cleanupThread = new Thread(CleanupLoop)
|
||||||
|
{
|
||||||
|
Name = "Profiler.CleanupThread"
|
||||||
|
};
|
||||||
_cleanupThread.Start();
|
_cleanupThread.Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,10 @@ namespace Ryujinx.Profiler.UI
|
||||||
{
|
{
|
||||||
_profilerRunning = true;
|
_profilerRunning = true;
|
||||||
_prevTime = 0;
|
_prevTime = 0;
|
||||||
_profileThread = new Thread(ProfileLoop);
|
_profileThread = new Thread(ProfileLoop)
|
||||||
|
{
|
||||||
|
Name = "Profiler.ProfileThread"
|
||||||
|
};
|
||||||
_profileThread.Start();
|
_profileThread.Start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,7 +63,10 @@ namespace Ryujinx.Profiler.UI
|
||||||
using (_window = new ProfileWindow())
|
using (_window = new ProfileWindow())
|
||||||
{
|
{
|
||||||
// Create thread for render loop
|
// Create thread for render loop
|
||||||
_renderThread = new Thread(RenderLoop);
|
_renderThread = new Thread(RenderLoop)
|
||||||
|
{
|
||||||
|
Name = "Profiler.RenderThread"
|
||||||
|
};
|
||||||
_renderThread.Start();
|
_renderThread.Start();
|
||||||
|
|
||||||
while (_profilerRunning)
|
while (_profilerRunning)
|
||||||
|
|
|
@ -120,7 +120,10 @@ namespace Ryujinx.Ui
|
||||||
Context.MakeCurrent(null);
|
Context.MakeCurrent(null);
|
||||||
|
|
||||||
// OpenTK doesn't like sleeps in its thread, to avoid this a renderer thread is created
|
// OpenTK doesn't like sleeps in its thread, to avoid this a renderer thread is created
|
||||||
_renderThread = new Thread(RenderLoop);
|
_renderThread = new Thread(RenderLoop)
|
||||||
|
{
|
||||||
|
Name = "GUI.RenderThread"
|
||||||
|
};
|
||||||
|
|
||||||
_renderThread.Start();
|
_renderThread.Start();
|
||||||
|
|
||||||
|
|
|
@ -653,6 +653,7 @@ namespace Ryujinx.Ui
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
thread.Name = "GUI.FirmwareInstallerThread";
|
||||||
thread.Start();
|
thread.Start();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue