Fix shared_mutex::lock_forced

This commit is contained in:
Ivan Chikish 2023-07-23 04:45:21 +03:00
parent dcf585455d
commit 881e5b8bcc

View file

@ -158,7 +158,7 @@ bool shared_mutex::lock_forced(int count) {
return atomic_op(m_value, [&](unsigned &v) {
if (v & c_sig) {
v -= c_sig;
v += c_one * (count - 1);
v += c_one * count;
return true;
}