Use global mutex to ensure driver access are sequential

This commit is contained in:
Kamil Trzciński 2022-11-20 21:17:21 +01:00
parent a1a438c3f8
commit f7e3e70c2b
6 changed files with 148 additions and 74 deletions

View file

@ -20,7 +20,7 @@ namespace PowerControl
{
Trace.WriteLine("WinRing0 initialized=" + WinRing0.InitializeOls().ToString());
VangoghGPU.Detect();
Instance.WithGlobalMutex(1000, () => VangoghGPU.Detect());
}
// To customize application configuration such as set high DPI settings or default font,