summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2018-02-19 17:23:05 -0500
committerGravatar GitHub2018-02-19 17:23:05 -0500
commit23fe6f5be33ecf329a95c6b0e5f7e4c75917cef9 (patch)
tree48ce770db1df193eba107183d52f03543c81f355 /src/core/hle/kernel/svc.cpp
parentMerge pull request #203 from Subv/ensure_save_data (diff)
parentscheduler: Cleanup based on PR feedback. (diff)
downloadyuzu-23fe6f5be33ecf329a95c6b0e5f7e4c75917cef9.tar.gz
yuzu-23fe6f5be33ecf329a95c6b0e5f7e4c75917cef9.tar.xz
yuzu-23fe6f5be33ecf329a95c6b0e5f7e4c75917cef9.zip
Merge pull request #202 from bunnei/scheduler-cleanup
Scheduler cleanup
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() {
483 g_current_process->status = ProcessStatus::Exited; 483 g_current_process->status = ProcessStatus::Exited;
484 484
485 // Stop all the process threads that are currently waiting for objects. 485 // Stop all the process threads that are currently waiting for objects.
486 auto& thread_list = GetThreadList(); 486 auto& thread_list = Core::System::GetInstance().Scheduler().GetThreadList();
487 for (auto& thread : thread_list) { 487 for (auto& thread : thread_list) {
488 if (thread->owner_process != g_current_process) 488 if (thread->owner_process != g_current_process)
489 continue; 489 continue;
@@ -585,7 +585,7 @@ static void SleepThread(s64 nanoseconds) {
585 585
586 // Don't attempt to yield execution if there are no available threads to run, 586 // Don't attempt to yield execution if there are no available threads to run,
587 // this way we avoid a useless reschedule to the idle thread. 587 // this way we avoid a useless reschedule to the idle thread.
588 if (nanoseconds == 0 && !HaveReadyThreads()) 588 if (nanoseconds == 0 && !Core::System::GetInstance().Scheduler().HaveReadyThreads())
589 return; 589 return;
590 590
591 // Sleep current thread and check for next thread to schedule 591 // Sleep current thread and check for next thread to schedule