mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-24 23:51:49 +01:00
Changed ControlService thread
This commit is contained in:
parent
d7f74815e1
commit
64f51675c7
@ -23,6 +23,7 @@ namespace DS4Windows
|
|||||||
private static bool exitComThread = false;
|
private static bool exitComThread = false;
|
||||||
public static ControlService rootHub;
|
public static ControlService rootHub;
|
||||||
private static Thread testThread;
|
private static Thread testThread;
|
||||||
|
private static Thread controlThread;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The main entry point for the application.
|
/// The main entry point for the application.
|
||||||
@ -119,11 +120,11 @@ namespace DS4Windows
|
|||||||
|
|
||||||
private static void createControlService()
|
private static void createControlService()
|
||||||
{
|
{
|
||||||
Thread temp = new Thread(() => { rootHub = new ControlService(); });
|
controlThread = new Thread(() => { rootHub = new ControlService(); });
|
||||||
temp.Priority = ThreadPriority.Normal;
|
controlThread.Priority = ThreadPriority.Normal;
|
||||||
temp.IsBackground = true;
|
controlThread.IsBackground = true;
|
||||||
temp.Start();
|
controlThread.Start();
|
||||||
while (temp.IsAlive)
|
while (controlThread.IsAlive)
|
||||||
Thread.SpinWait(500);
|
Thread.SpinWait(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user