mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Return error code in sys_ppu_thread_get_join_state
This commit is contained in:
parent
660bfeabae
commit
56b7581ade
2 changed files with 8 additions and 2 deletions
|
|
@ -188,11 +188,17 @@ error_code sys_ppu_thread_detach(u32 thread_id)
|
|||
return CELL_OK;
|
||||
}
|
||||
|
||||
void sys_ppu_thread_get_join_state(ppu_thread& ppu, vm::ptr<s32> isjoinable)
|
||||
error_code sys_ppu_thread_get_join_state(ppu_thread& ppu, vm::ptr<s32> isjoinable)
|
||||
{
|
||||
sys_ppu_thread.trace("sys_ppu_thread_get_join_state(isjoinable=*0x%x)", isjoinable);
|
||||
|
||||
if (!isjoinable)
|
||||
{
|
||||
return CELL_EFAULT;
|
||||
}
|
||||
|
||||
*isjoinable = ppu.joiner != -1;
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
error_code sys_ppu_thread_set_priority(ppu_thread& ppu, u32 thread_id, s32 prio)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue