mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-01 12:08:12 +00:00
Fix lf_queue_base::wait
Add missing state change
This commit is contained in:
parent
b2e08100ff
commit
1dedeb37bf
@ -275,6 +275,14 @@ void shared_cond::imp_notify() noexcept
|
|||||||
|
|
||||||
bool lf_queue_base::wait(u64 _timeout)
|
bool lf_queue_base::wait(u64 _timeout)
|
||||||
{
|
{
|
||||||
|
auto _old = m_head.compare_and_swap(0, 1);
|
||||||
|
|
||||||
|
if (_old)
|
||||||
|
{
|
||||||
|
verify("lf_queue concurrent wait" HERE), _old != 1;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return balanced_wait_until(m_head, _timeout, [](std::uintptr_t& head, auto... ret) -> int
|
return balanced_wait_until(m_head, _timeout, [](std::uintptr_t& head, auto... ret) -> int
|
||||||
{
|
{
|
||||||
if (head != 1)
|
if (head != 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user