[host] windows: fix graceful exit
We were using an auto-reset event to signal the mousehook exit. This was fine when there was only one thread, but with the addition of the update thread, only one thread is signaled, causing the wait to last forever. The fix is switching to a manual reset event and call ResetEvent after the threads have exited.
This commit is contained in:
1 parent
669148bca0
commit
80bc9604ba
3 files changed
+4
-1
No files matched your search
@@ -787,6 +787,7 @@ fail_lgmp:
|
||||
fail_ivshmem:
|
||||
ivshmemClose(&shmDev);
|
||||
ivshmemFree(&shmDev);
|
||||
DEBUG_INFO("Host application exited");
|
||||
return exitcode;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user