mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Linux: use futex_waitv syscall for atomic waiting
In order to make this possible, some unnecessary features were removed.
This commit is contained in:
parent
831a9fe012
commit
d34287b2cc
51 changed files with 441 additions and 574 deletions
|
|
@ -21,7 +21,7 @@ inline void try_start(spu_thread& spu)
|
|||
}).second)
|
||||
{
|
||||
spu.state -= cpu_flag::stop;
|
||||
spu.state.notify_one(cpu_flag::stop);
|
||||
spu.state.notify_one();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -273,7 +273,7 @@ bool spu_thread::write_reg(const u32 addr, const u32 value)
|
|||
|
||||
for (status_npc_sync_var old; (old = status_npc).status & SPU_STATUS_RUNNING;)
|
||||
{
|
||||
status_npc.wait(old);
|
||||
utils::bless<atomic_t<u32>>(&status_npc)[0].wait(old.status);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue