mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +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
|
@ -1641,7 +1641,10 @@ void spu_thread::cleanup()
|
|||
vm::free_range_lock(range_lock);
|
||||
|
||||
// Signal the debugger about the termination
|
||||
state += cpu_flag::exit;
|
||||
if (!state.test_and_set(cpu_flag::exit))
|
||||
{
|
||||
state.notify_one();
|
||||
}
|
||||
}
|
||||
|
||||
spu_thread::~spu_thread()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue