Name all threads (#886)
* Name all threads Close #874 * use ThreadName instead of ThreadId in Logging
This commit is contained in:
parent
f0055482fd
commit
5facc0c07f
13 changed files with 60 additions and 29 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue