mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-11-18 03:44:43 +01:00
Fix cond_variable timeout
Thanks @Farseer2 for debugging
This commit is contained in:
1 parent
223f17ac7e
commit
c58738807e
3 files changed
+7
-4
No files matched your search
@@ -1768,7 +1768,7 @@ bool thread_ctrl::_wait_for(u64 usec)
|
||||
}
|
||||
}
|
||||
}
|
||||
while (_this->m_cond.wait(_lock, std::exchange(usec, usec == -1 ? -1 : 0)));
|
||||
while (_this->m_cond.wait(_lock, std::exchange(usec, usec > cond_variable::max_timeout ? -1 : 0)));
|
||||
|
||||
// Timeout
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user