Example #1
0
s32 sys_ppu_thread_stop(u64 thread_id)
{
	sysPrxForUser->Warning("sys_ppu_thread_stop(thread_id=%lld)", thread_id);

	CPUThread* thr = Emu.GetCPU().GetThread(thread_id);
	if(!thr) return CELL_ESRCH;

	thr->Stop();

	return CELL_OK;
}
Example #2
0
int sys_ppu_thread_restart(u32 thread_id)
{
    sysPrxForUser.Warning("sys_ppu_thread_restart(thread_id=%d)", thread_id);

    CPUThread* thr = Emu.GetCPU().GetThread(thread_id);
    if(!thr) return CELL_ESRCH;

    thr->Stop();
    thr->Run();

    return CELL_OK;
}
Example #3
0
s32 sys_ppu_thread_restart(u64 thread_id)
{
	sys_ppu_thread.Warning("sys_ppu_thread_restart(thread_id=%lld)", thread_id);

	CPUThread* thr = Emu.GetCPU().GetThread(thread_id);
	if(!thr) return CELL_ESRCH;

	thr->Stop();
	thr->Run();

	return CELL_OK;
}