mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
LV2: Avoid using multi-variable atomic waiting on cpu_thread::state wait
This commit is contained in:
parent
2a00a88e2a
commit
d25d1ecb3a
16 changed files with 31 additions and 24 deletions
|
@ -588,7 +588,7 @@ void cpu_thread::operator()()
|
|||
continue;
|
||||
}
|
||||
|
||||
thread_ctrl::wait_on(state, state0);
|
||||
state.wait(state0);
|
||||
|
||||
if (state & cpu_flag::ret && state.test_and_reset(cpu_flag::ret))
|
||||
{
|
||||
|
@ -640,7 +640,7 @@ cpu_thread::cpu_thread(u32 id)
|
|||
|
||||
void cpu_thread::cpu_wait(bs_t<cpu_flag> old)
|
||||
{
|
||||
thread_ctrl::wait_on(state, old);
|
||||
state.wait(old);
|
||||
}
|
||||
|
||||
static atomic_t<u32> s_dummy_atomic = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue