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

@ -58,9 +58,12 @@ namespace ARMeilleure.Translation
{
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();
}