mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-04 05:45:03 -06:00
sys_event_flag_set: Minor improvement
This commit is contained in:
parent
cd8954db14
commit
8b3652ef40
@ -424,6 +424,8 @@ error_code sys_event_flag_set(cpu_thread& cpu, u32 id, u64 bitptn)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dependant_mask &= ~bitptn;
|
||||||
|
|
||||||
auto [new_val, ok] = flag->pattern.fetch_op([&](u64& x)
|
auto [new_val, ok] = flag->pattern.fetch_op([&](u64& x)
|
||||||
{
|
{
|
||||||
if ((x ^ pattern) & dependant_mask)
|
if ((x ^ pattern) & dependant_mask)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user