mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-12 00:09:11 +01:00
Try getting around wait yet again
This commit is contained in:
parent
9ec41b207a
commit
82c3d4beff
@ -328,12 +328,13 @@ namespace DS4Windows
|
||||
try
|
||||
{
|
||||
exitOutputThread = true;
|
||||
lock (outputReport)
|
||||
/*lock (outputReport)
|
||||
{
|
||||
Monitor.PulseAll(outputReport);
|
||||
}
|
||||
*/
|
||||
|
||||
//ds4Output.Interrupt();
|
||||
ds4Output.Interrupt();
|
||||
ds4Output.Join();
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -359,6 +360,8 @@ namespace DS4Windows
|
||||
private void performDs4Output()
|
||||
{
|
||||
lock (outputReport)
|
||||
{
|
||||
try
|
||||
{
|
||||
int lastError = 0;
|
||||
while (!exitOutputThread)
|
||||
@ -395,6 +398,11 @@ namespace DS4Windows
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (ThreadInterruptedException)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Is the device alive and receiving valid sensor input reports? */
|
||||
|
Loading…
x
Reference in New Issue
Block a user