Raise thread priority.

Using AboveNormal priority for now. Test Highest priority
at some point.
This commit is contained in:
Travis Nickles 2017-03-19 07:09:57 -07:00
parent ef779afdf2
commit 2b00244c62

View File

@ -242,9 +242,11 @@ namespace DS4Windows
Console.WriteLine(MacAddress.ToString() + " " + System.DateTime.UtcNow.ToString("o") + "> start");
sendOutputReport(true); // initialize the output report
ds4Output = new Thread(performDs4Output);
ds4Output.Priority = ThreadPriority.AboveNormal;
ds4Output.Name = "DS4 Output thread: " + Mac;
ds4Output.Start();
ds4Input = new Thread(performDs4Input);
ds4Input.Priority = ThreadPriority.AboveNormal;
ds4Input.Name = "DS4 Input thread: " + Mac;
ds4Input.Start();
}