diff options
| author | 2015-05-11 23:22:47 -0400 | |
|---|---|---|
| committer | 2015-05-11 23:22:47 -0400 | |
| commit | ee8da4c35649a70cfb61484d0a41ba04aff034c1 (patch) | |
| tree | 65b7b2cd1c0fcc22f545c87052ec00f3528c92f4 /src/core/core.cpp | |
| parent | Merge pull request #757 from Subv/scheduling (diff) | |
| parent | Thread: Remove the idle thread (diff) | |
| download | yuzu-ee8da4c35649a70cfb61484d0a41ba04aff034c1.tar.gz yuzu-ee8da4c35649a70cfb61484d0a41ba04aff034c1.tar.xz yuzu-ee8da4c35649a70cfb61484d0a41ba04aff034c1.zip | |
Merge pull request #751 from yuriks/idle-thread
Thread: Remove the idle thread
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index b5c258230..53aae8c2f 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -24,9 +24,9 @@ ARM_Interface* g_sys_core = nullptr; ///< ARM11 system (OS) core | |||
| 24 | 24 | ||
| 25 | /// Run the core CPU loop | 25 | /// Run the core CPU loop |
| 26 | void RunLoop(int tight_loop) { | 26 | void RunLoop(int tight_loop) { |
| 27 | // If the current thread is an idle thread, then don't execute instructions, | 27 | // If we don't have a currently active thread then don't execute instructions, |
| 28 | // instead advance to the next event and try to yield to the next thread | 28 | // instead advance to the next event and try to yield to the next thread |
| 29 | if (Kernel::GetCurrentThread()->IsIdle()) { | 29 | if (Kernel::GetCurrentThread() == nullptr) { |
| 30 | LOG_TRACE(Core_ARM11, "Idling"); | 30 | LOG_TRACE(Core_ARM11, "Idling"); |
| 31 | CoreTiming::Idle(); | 31 | CoreTiming::Idle(); |
| 32 | CoreTiming::Advance(); | 32 | CoreTiming::Advance(); |