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:
parent
34fa010601
commit
cc07e5306e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user