mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
fix thread exit crash
This commit is contained in:
parent
64bfae6648
commit
8a3835bcef
@ -351,6 +351,11 @@ void CPUThread::Task()
|
||||
{
|
||||
ConLog.Error("Exception: %s", e);
|
||||
}
|
||||
catch(int exitcode)
|
||||
{
|
||||
ConLog.Success("Exit Code: %d", exitcode);
|
||||
return;
|
||||
}
|
||||
|
||||
//ConLog.Write("%s leave", CPUThread::GetFName());
|
||||
|
||||
|
@ -169,7 +169,7 @@ extern int sys_mutex_trylock(u32 mutex_id);
|
||||
extern int sys_mutex_unlock(u32 mutex_id);
|
||||
|
||||
//ppu_thread
|
||||
extern int sys_ppu_thread_exit(int errorcode);
|
||||
extern void sys_ppu_thread_exit(int errorcode);
|
||||
extern int sys_ppu_thread_yield();
|
||||
extern int sys_ppu_thread_join(u32 thread_id, u32 vptr_addr);
|
||||
extern int sys_ppu_thread_detach(u32 thread_id);
|
||||
|
@ -10,7 +10,7 @@ enum
|
||||
SYS_PPU_THREAD_DONE_INIT,
|
||||
};
|
||||
|
||||
int sys_ppu_thread_exit(int errorcode)
|
||||
void sys_ppu_thread_exit(int errorcode)
|
||||
{
|
||||
if(errorcode == 0)
|
||||
{
|
||||
@ -25,7 +25,7 @@ int sys_ppu_thread_exit(int errorcode)
|
||||
thr.SetExitStatus(errorcode);
|
||||
Emu.GetCPU().RemoveThread(thr.GetId());
|
||||
|
||||
return CELL_OK;
|
||||
throw errorcode;
|
||||
}
|
||||
|
||||
int sys_ppu_thread_yield()
|
||||
|
Loading…
Reference in New Issue
Block a user