mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 03:33:44 +01:00
Listen for shutdown in thread loops.
This way we don't need to use wait_for(), much better. Also because there are slightly more correct cond vars on win32.
This commit is contained in:
1 parent
4b9056fa02
commit
086294b495
3 files changed
+15
-3
No files matched your search
@@ -81,7 +81,7 @@ struct ThreadEventQueue : public B {
|
||||
}
|
||||
|
||||
// coreState changes won't wake us, so recheck periodically.
|
||||
eventsWait_.wait_for(eventsWaitLock_, 1);
|
||||
eventsWait_.wait(eventsWaitLock_);
|
||||
} while (CoreTiming::GetTicks() < globalticks);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user