From 5facc0c07f8a3f6fd0f39229044fe120501162a7 Mon Sep 17 00:00:00 2001 From: Ac_K Date: Mon, 13 Jan 2020 01:21:54 +0100 Subject: Name all threads (#886) * Name all threads Close #874 * use ThreadName instead of ThreadId in Logging --- ARMeilleure/Translation/Translator.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ARMeilleure') diff --git a/ARMeilleure/Translation/Translator.cs b/ARMeilleure/Translation/Translator.cs index 6531e9f0..4725ca59 100644 --- a/ARMeilleure/Translation/Translator.cs +++ b/ARMeilleure/Translation/Translator.cs @@ -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(); } -- cgit v1.2.3