mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-16 16:21:02 +00:00
cond_variable: fix warning in cond.h for MSVC
This commit is contained in:
parent
e7d67f9732
commit
3121fecc8f
@ -17,7 +17,8 @@ void cond_variable::imp_wait(u32 _old, u64 _timeout) noexcept
|
|||||||
// Cleanup
|
// Cleanup
|
||||||
m_value.atomic_op([](u32& value)
|
m_value.atomic_op([](u32& value)
|
||||||
{
|
{
|
||||||
value -= c_waiter_mask & -c_waiter_mask;
|
// Remove waiter (c_waiter_mask)
|
||||||
|
value -= 1;
|
||||||
|
|
||||||
if ((value & c_waiter_mask) == 0)
|
if ((value & c_waiter_mask) == 0)
|
||||||
{
|
{
|
||||||
|
@ -29,7 +29,8 @@ protected:
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
value += c_waiter_mask & -c_waiter_mask;
|
// Add waiter (c_waiter_mask)
|
||||||
|
value += 1;
|
||||||
return value;
|
return value;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user