Changed Sleep to SpinWait. VS tweak

This commit is contained in:
Travis Nickles 2020-01-09 17:20:46 -06:00
parent 99c2f020b4
commit 950c0e0924

View File

@ -224,9 +224,9 @@ namespace DS4WinWPF
sw.Start();
while (App.rootHub.running != serviceRunningStatus && sw.Elapsed.TotalSeconds < 10)
{
Thread.Sleep(500);
Thread.SpinWait(1000);
}
Thread.Sleep(500);
Thread.SpinWait(1000);
}
}