summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/wait_object.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-09-11 18:47:37 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2019-10-15 17:55:16 +0200
commite05a8c2385a68be6b1f6079c656fa46336546927 (patch)
tree39a6d0c1955c580f7db66a53fc5777cdc885e4b7 /src/core/hle/kernel/wait_object.cpp
parentScheduler: Implement Yield Count and Core migration on Thread Preemption. (diff)
downloadyuzu-e05a8c2385a68be6b1f6079c656fa46336546927.tar
yuzu-e05a8c2385a68be6b1f6079c656fa46336546927.tar.gz
yuzu-e05a8c2385a68be6b1f6079c656fa46336546927.tar.bz2
yuzu-e05a8c2385a68be6b1f6079c656fa46336546927.tar.lz
yuzu-e05a8c2385a68be6b1f6079c656fa46336546927.tar.xz
yuzu-e05a8c2385a68be6b1f6079c656fa46336546927.tar.zst
yuzu-e05a8c2385a68be6b1f6079c656fa46336546927.zip
Diffstat (limited to 'src/core/hle/kernel/wait_object.cpp')
-rw-r--r--src/core/hle/kernel/wait_object.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/wait_object.cpp b/src/core/hle/kernel/wait_object.cpp
index a65ec7dbc..50ed2a2f1 100644
--- a/src/core/hle/kernel/wait_object.cpp
+++ b/src/core/hle/kernel/wait_object.cpp
@@ -8,6 +8,7 @@
#include "common/logging/log.h"
#include "core/core.h"
#include "core/core_cpu.h"
+#include "core/hle/kernel/kernel.h"
#include "core/hle/kernel/object.h"
#include "core/hle/kernel/process.h"
#include "core/hle/kernel/thread.h"
@@ -97,7 +98,7 @@ void WaitObject::WakeupWaitingThread(SharedPtr<Thread> thread) {
}
if (resume) {
thread->ResumeFromWait();
- Core::System::GetInstance().PrepareReschedule(thread->GetProcessorID());
+ kernel.System().PrepareReschedule(thread->GetProcessorID());
}
}