Speed up __GetCurrentThread(), it's called a lot.

This only needs to be an assertion.
This commit is contained in:
Unknown W. Brackets 2013-11-02 20:04:43 -07:00
parent 159e30cbb2
commit 738dfc84e4
2 changed files with 2 additions and 6 deletions

View file

@ -932,7 +932,7 @@ void MipsCall::setReturnValue(u64 value)
savedV1 = (value >> 32) & 0xFFFFFFFF;
}
Thread *__GetCurrentThread() {
inline Thread *__GetCurrentThread() {
if (currentThread != 0)
return kernelObjects.GetFast<Thread>(currentThread);
else