mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
Thread.cpp refinement
Hide thread mutex Safe notify() method Other refactoring
This commit is contained in:
parent
da878c36bd
commit
a5a2d43d7c
35 changed files with 532 additions and 591 deletions
|
@ -421,7 +421,7 @@ s32 sys_spu_thread_group_resume(u32 id)
|
|||
if (thread)
|
||||
{
|
||||
thread->state -= cpu_flag::suspend;
|
||||
thread->lock_notify();
|
||||
thread->notify();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -504,7 +504,7 @@ s32 sys_spu_thread_group_terminate(u32 id, s32 value)
|
|||
if (thread)
|
||||
{
|
||||
thread->state += cpu_flag::stop;
|
||||
thread->lock_notify();
|
||||
thread->notify();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -563,7 +563,7 @@ s32 sys_spu_thread_group_join(u32 id, vm::ptr<u32> cause, vm::ptr<u32> status)
|
|||
|
||||
CHECK_EMU_STATUS;
|
||||
|
||||
group->cv.wait_for(lv2_lock, 1ms);
|
||||
group->cv.wait(lv2_lock, 1000);
|
||||
}
|
||||
|
||||
switch (group->join_state & ~SPU_TGJSF_IS_JOINING)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue