mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 23:17:29 +00:00
Fix safe_writer_lock (typo)
This commit is contained in:
parent
c1f32aa570
commit
7f542a5c99
@ -64,7 +64,7 @@ void shared_mutex::imp_lock_shared(s64 _old)
|
||||
|
||||
if (value0 >= c_min)
|
||||
{
|
||||
return;
|
||||
return;
|
||||
}
|
||||
|
||||
// Acquire writer lock
|
||||
@ -79,7 +79,7 @@ void shared_mutex::imp_lock_shared(s64 _old)
|
||||
}
|
||||
|
||||
value1 += c_one - c_min;
|
||||
|
||||
|
||||
if (value1 > 0)
|
||||
{
|
||||
return;
|
||||
@ -109,7 +109,7 @@ void shared_mutex::imp_lock_shared(s64 _old)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
imp_unlock_shared(value2);
|
||||
}
|
||||
#endif
|
||||
@ -300,7 +300,7 @@ safe_writer_lock::safe_writer_lock(shared_mutex& mutex)
|
||||
|
||||
if (m_is_owned)
|
||||
{
|
||||
m_mutex.lock_shared();
|
||||
m_mutex.lock();
|
||||
g_tls_locks.emplace_back(&m_mutex);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user