mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-16 16:09:13 +01:00
Changed Sleep to SpinWait. VS tweak
This commit is contained in:
parent
99c2f020b4
commit
950c0e0924
@ -224,9 +224,9 @@ namespace DS4WinWPF
|
|||||||
sw.Start();
|
sw.Start();
|
||||||
while (App.rootHub.running != serviceRunningStatus && sw.Elapsed.TotalSeconds < 10)
|
while (App.rootHub.running != serviceRunningStatus && sw.Elapsed.TotalSeconds < 10)
|
||||||
{
|
{
|
||||||
Thread.Sleep(500);
|
Thread.SpinWait(1000);
|
||||||
}
|
}
|
||||||
Thread.Sleep(500);
|
Thread.SpinWait(1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user