summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-02-18 21:17:16 +0100
committerbunnei <bunneidev@gmail.com>2018-02-18 21:17:16 +0100
commitac81c02ed9401b137e83bece2edd6dee8d0a0af2 (patch)
treef849c805fdb9ac756ece2e2f72d6009c58676bd6 /src/core/hle/kernel/svc.cpp
parentkernel: Add Scheduler, which encapsulates the scheduling loading from Thread module. (diff)
downloadyuzu-ac81c02ed9401b137e83bece2edd6dee8d0a0af2.tar
yuzu-ac81c02ed9401b137e83bece2edd6dee8d0a0af2.tar.gz
yuzu-ac81c02ed9401b137e83bece2edd6dee8d0a0af2.tar.bz2
yuzu-ac81c02ed9401b137e83bece2edd6dee8d0a0af2.tar.lz
yuzu-ac81c02ed9401b137e83bece2edd6dee8d0a0af2.tar.xz
yuzu-ac81c02ed9401b137e83bece2edd6dee8d0a0af2.tar.zst
yuzu-ac81c02ed9401b137e83bece2edd6dee8d0a0af2.zip
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 4d20ef134..cbd5b69aa 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -483,7 +483,7 @@ static void ExitProcess() {
g_current_process->status = ProcessStatus::Exited;
// Stop all the process threads that are currently waiting for objects.
- auto& thread_list = GetThreadList();
+ auto& thread_list = Core::System::GetInstance().Scheduler().GetThreadList();
for (auto& thread : thread_list) {
if (thread->owner_process != g_current_process)
continue;
@@ -585,7 +585,7 @@ static void SleepThread(s64 nanoseconds) {
// Don't attempt to yield execution if there are no available threads to run,
// this way we avoid a useless reschedule to the idle thread.
- if (nanoseconds == 0 && !HaveReadyThreads())
+ if (nanoseconds == 0 && !Core::System::GetInstance().Scheduler().HaveReadyThreads())
return;
// Sleep current thread and check for next thread to schedule