mirror of https://github.com/snes9xgit/snes9x.git
Close semaphore handles.
This commit is contained in:
parent
4ede4b7447
commit
2426c2412f
|
@ -319,6 +319,8 @@ static void S9xAPUThreadDeinit(void)
|
||||||
S9xAPUThreadRun();
|
S9xAPUThreadRun();
|
||||||
WaitForSingleObject(worker_thread, INFINITE);
|
WaitForSingleObject(worker_thread, INFINITE);
|
||||||
CloseHandle(worker_thread);
|
CloseHandle(worker_thread);
|
||||||
|
CloseHandle(thread_running_semaphore);
|
||||||
|
CloseHandle(thread_waiting_semaphore);
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue