mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
orbis-kernel: shared_cv: fixed regression
This commit is contained in:
parent
8440940945
commit
9558bb7335
2 changed files with 12 additions and 8 deletions
|
|
@ -18,7 +18,9 @@ std::errc shared_cv::impl_wait(shared_mutex &mutex, unsigned _val,
|
|||
std::errc result = {};
|
||||
|
||||
while (true) {
|
||||
result = m_value.wait(_val, std::chrono::microseconds(usec_timeout));
|
||||
result = m_value.wait(_val, usec_timeout == static_cast<std::uint64_t>(-1)
|
||||
? std::chrono::microseconds::max()
|
||||
: std::chrono::microseconds(usec_timeout));
|
||||
|
||||
// Cleanup
|
||||
const auto old = m_value.fetch_op([&](unsigned &value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue