mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Windows: Prevent hang on shutdown.
Which may occur on ARM64 or perhaps lower thread processors? Let's avoid spinloops.
This commit is contained in:
1 parent
83272c5e25
commit
c66d5dcac1
3 files changed
+22
-6
No files matched your search
+2
-4
@@ -946,14 +946,12 @@ void NativeShutdownGraphics() {
|
||||
|
||||
#if PPSSPP_PLATFORM(WINDOWS) && !PPSSPP_PLATFORM(UWP)
|
||||
if (winCamera) {
|
||||
winCamera->sendMessage({ CAPTUREDEVIDE_COMMAND::SHUTDOWN, nullptr });
|
||||
while (!winCamera->isShutDown()) {};// Wait for shutting down.
|
||||
winCamera->waitShutDown();
|
||||
delete winCamera;
|
||||
winCamera = nullptr;
|
||||
}
|
||||
if (winMic) {
|
||||
winMic->sendMessage({ CAPTUREDEVIDE_COMMAND::SHUTDOWN, nullptr });
|
||||
while (!winMic->isShutDown()) {};// Wait for shutting down.
|
||||
winMic->waitShutDown();
|
||||
delete winMic;
|
||||
winMic = nullptr;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user