diff options
| author | Ac_K <Acoustik666@gmail.com> | 2020-01-13 01:21:54 +0100 |
|---|---|---|
| committer | Thog <me@thog.eu> | 2020-01-13 01:21:54 +0100 |
| commit | 5facc0c07f8a3f6fd0f39229044fe120501162a7 (patch) | |
| tree | 58ea7980cd38214806152b5f13f2427102a78564 /ARMeilleure | |
| parent | f0055482fd1aef9dcae7c6c4c6e01483f11f7839 (diff) | |
Name all threads (#886)
* Name all threads
Close #874
* use ThreadName instead of ThreadId in Logging
Diffstat (limited to 'ARMeilleure')
| -rw-r--r-- | ARMeilleure/Translation/Translator.cs | 7 |
1 files changed, 5 insertions, 2 deletions
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(); } |
