mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Minor perf gain in __KernelNextThread.
Just like .1% but was hoping Mr. Optimizer would do this for me.
This commit is contained in:
1 parent
6ca1cad28c
commit
537fbe4d7d
1 file changed
+3
-2
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user