Minor perf gain in __KernelNextThread.
Just like .1% but was hoping Mr. Optimizer would do this for me.
This commit is contained in:
parent
6ca1cad28c
commit
537fbe4d7d
1 changed files with 3 additions and 2 deletions
|
@ -1221,8 +1221,9 @@ u32 __KernelDeleteThread(SceUID threadID, int exitStatus, const char *reason, bo
|
|||
|
||||
Thread *__KernelNextThread() {
|
||||
// If the current thread is running, it's a valid candidate.
|
||||
if (__GetCurrentThread() && __GetCurrentThread()->isRunning())
|
||||
__KernelChangeReadyState(currentThread, true);
|
||||
Thread *cur = __GetCurrentThread();
|
||||
if (cur && cur->isRunning())
|
||||
__KernelChangeReadyState(cur, currentThread, true);
|
||||
|
||||
SceUID bestThread = -1;
|
||||
// This goes in priority order.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue