mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +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
|
@ -4860,9 +4860,9 @@ bool spu_thread::stop_and_signal(u32 code)
|
|||
}
|
||||
}
|
||||
|
||||
while (auto old = state.fetch_sub(cpu_flag::signal))
|
||||
while (auto old = +state)
|
||||
{
|
||||
if (old & cpu_flag::signal)
|
||||
if (old & cpu_flag::signal && state.test_and_reset(cpu_flag::signal))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue