mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-15 23:40:29 +02:00
Reset thread priority on terminate.
This commit is contained in:
1 parent
a3637a1cad
commit
e19fdef0fd
1 file changed
+2
@@ -2368,6 +2368,8 @@ int sceKernelTerminateThread(SceUID threadID)
|
||||
}
|
||||
|
||||
INFO_LOG(SCEKERNEL, "sceKernelTerminateThread(%i)", threadID);
|
||||
// On terminate, we reset the thread priority. On exit, we don't always (see __KernelResetThread.)
|
||||
t->nt.currentPriority = t->nt.initialPriority;
|
||||
// TODO: Should this reschedule? Seems like not.
|
||||
__KernelStopThread(threadID, SCE_KERNEL_ERROR_THREAD_TERMINATED, "thread terminated");
|
||||
|
||||
|
||||
Reference in new issue
Block a user