mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-05 08:10:10 +01:00
shared cv: do not wakeup on spurious wakeup with timeout
This commit is contained in:
parent
fdce2892fb
commit
c4d55af26a
|
|
@ -31,7 +31,7 @@ std::errc shared_cv::impl_wait(shared_mutex &mutex, unsigned _val,
|
|||
// Remove waiter if no signals
|
||||
if ((value & ~c_waiter_mask) == 0) {
|
||||
|
||||
if (useTimeout || !spurious) {
|
||||
if (!spurious) {
|
||||
value -= 1;
|
||||
}
|
||||
}
|
||||
|
|
@ -66,7 +66,7 @@ std::errc shared_cv::impl_wait(shared_mutex &mutex, unsigned _val,
|
|||
#endif
|
||||
|
||||
// Possibly spurious wakeup
|
||||
if (useTimeout || !spurious) {
|
||||
if (!spurious) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue