mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
LV2: Minor optimization regarding signal flag
This commit is contained in:
parent
dc851a729e
commit
2eebbd307d
11 changed files with 24 additions and 26 deletions
|
@ -184,9 +184,9 @@ error_code _sys_lwmutex_lock(ppu_thread& ppu, u32 lwmutex_id, u64 timeout)
|
|||
return not_an_error(ppu.gpr[3]);
|
||||
}
|
||||
|
||||
while (auto state = ppu.state.fetch_sub(cpu_flag::signal))
|
||||
while (auto state = +ppu.state)
|
||||
{
|
||||
if (state & cpu_flag::signal)
|
||||
if (state & cpu_flag::signal && ppu.state.test_and_reset(cpu_flag::signal))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue