Thread: Reduce use of Handles and move some funcs to inside the class.

This commit is contained in:
Yuri Kunde Schlesner 2014-12-22 11:07:22 -02:00
parent ba72208cd4
commit 9bf8462b96
11 changed files with 222 additions and 302 deletions

View file

@ -25,7 +25,7 @@ ARM_Interface* g_sys_core = nullptr; ///< ARM11 system (OS) core
void RunLoop(int tight_loop) {
// If the current thread is an idle thread, then don't execute instructions,
// instead advance to the next event and try to yield to the next thread
if (Kernel::IsIdleThread(Kernel::GetCurrentThreadHandle())) {
if (Kernel::GetCurrentThread()->IsIdle()) {
LOG_TRACE(Core_ARM11, "Idling");
CoreTiming::Idle();
CoreTiming::Advance();