forked from eden-emu/eden
Thread: Reduce use of Handles and move some funcs to inside the class.
This commit is contained in:
parent
ba72208cd4
commit
9bf8462b96
11 changed files with 222 additions and 302 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue