mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
Use vm::passive_lock for SPU threads
This commit is contained in:
parent
e88508b679
commit
d392379c7a
8 changed files with 76 additions and 51 deletions
|
@ -588,6 +588,22 @@ void ppu_thread::cpu_task()
|
|||
}
|
||||
}
|
||||
|
||||
void ppu_thread::cpu_sleep()
|
||||
{
|
||||
vm::temporary_unlock(*this);
|
||||
lv2_obj::awake(*this);
|
||||
}
|
||||
|
||||
void ppu_thread::cpu_mem()
|
||||
{
|
||||
vm::passive_lock(*this);
|
||||
}
|
||||
|
||||
void ppu_thread::cpu_unmem()
|
||||
{
|
||||
state.test_and_set(cpu_flag::memory);
|
||||
}
|
||||
|
||||
void ppu_thread::exec_task()
|
||||
{
|
||||
if (g_cfg.core.ppu_decoder == ppu_decoder_type::llvm)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue