Reset thread priority on terminate.

This commit is contained in:
Unknown W. Brackets committed 2013-09-09 21:31:04 -07:00
1 parent a3637a1cad
commit e19fdef0fd
1 file changed
+2
+2
View File
@@ -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");