mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 07:50:28 +02:00
Quick and dirty attempt to delay loadmodule.
This commit is contained in:
1 parent
6adb6762f2
commit
db52d3d43c
4 files changed
+10
-9
No files matched your search
@@ -1852,26 +1852,26 @@ void sceKernelChangeThreadPriority()
|
||||
}
|
||||
}
|
||||
|
||||
void sceKernelDelayThreadCB()
|
||||
int sceKernelDelayThreadCB(u32 usec)
|
||||
{
|
||||
u32 usec = PARAM(0);
|
||||
if (usec < 200) usec = 200;
|
||||
DEBUG_LOG(HLE,"sceKernelDelayThreadCB(%i usec)",usec);
|
||||
|
||||
SceUID curThread = __KernelGetCurThread();
|
||||
__KernelScheduleWakeup(curThread, usec);
|
||||
__KernelWaitCurThread(WAITTYPE_DELAY, curThread, 0, 0, true, "thread delayed");
|
||||
return 0;
|
||||
}
|
||||
|
||||
void sceKernelDelayThread()
|
||||
int sceKernelDelayThread(u32 usec)
|
||||
{
|
||||
u32 usec = PARAM(0);
|
||||
if (usec < 200) usec = 200;
|
||||
DEBUG_LOG(HLE,"sceKernelDelayThread(%i usec)",usec);
|
||||
|
||||
SceUID curThread = __KernelGetCurThread();
|
||||
__KernelScheduleWakeup(curThread, usec);
|
||||
__KernelWaitCurThread(WAITTYPE_DELAY, curThread, 0, 0, false, "thread delayed");
|
||||
return 0;
|
||||
}
|
||||
|
||||
void sceKernelDelaySysClockThreadCB()
|
||||
|
||||
Reference in new issue
Block a user