mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
Fix cond_variable timeout
Thanks @Farseer2 for debugging
This commit is contained in:
parent
223f17ac7e
commit
c58738807e
3 changed files with 7 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue