mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
time out InactiveCond's wait instead
This commit is contained in:
1 parent
6d5bf32796
commit
15189e99d3
1 file changed
+1
-3
+1
-3
@@ -191,9 +191,7 @@ void Core_StateProcessed() {
|
||||
void Core_WaitInactive() {
|
||||
while (Core_IsActive() && !GPUStepping::IsStepping()) {
|
||||
std::unique_lock<std::mutex> guard(m_hInactiveMutex);
|
||||
if (coreStatePending) {
|
||||
m_InactiveCond.wait(guard);
|
||||
}
|
||||
m_InactiveCond.wait_for(guard, std::chrono::seconds(1));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user