1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

Improve shared_mutex

Wait/notify only on c_sig, should reduce spurious wakeup noise.
This commit is contained in:
Nekotekina 2020-11-05 19:15:20 +03:00
parent 34fa010601
commit cc07e5306e

View File

@ -59,14 +59,14 @@ void shared_mutex::imp_wait()
break;
}
m_value.wait(old);
m_value.wait(old, c_sig);
}
}
void shared_mutex::imp_signal()
{
m_value += c_sig;
m_value.notify_one();
m_value.notify_one(c_sig);
}
void shared_mutex::imp_lock(u32 val)