diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-14 03:04:10 +0100 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2020-02-22 16:18:06 +0100 |
commit | 0728dfef84ded5e68bdb3b0781ea00ca7cc85659 (patch) | |
tree | 2f0746f6070e5e27eaa15612458acbd33a911d6a /src/core/hle/kernel/scheduler.cpp | |
parent | Merge pull request #3444 from bunnei/linux-audio-fix (diff) | |
download | yuzu-0728dfef84ded5e68bdb3b0781ea00ca7cc85659.tar yuzu-0728dfef84ded5e68bdb3b0781ea00ca7cc85659.tar.gz yuzu-0728dfef84ded5e68bdb3b0781ea00ca7cc85659.tar.bz2 yuzu-0728dfef84ded5e68bdb3b0781ea00ca7cc85659.tar.lz yuzu-0728dfef84ded5e68bdb3b0781ea00ca7cc85659.tar.xz yuzu-0728dfef84ded5e68bdb3b0781ea00ca7cc85659.tar.zst yuzu-0728dfef84ded5e68bdb3b0781ea00ca7cc85659.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/scheduler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/scheduler.cpp b/src/core/hle/kernel/scheduler.cpp index 86f1421bf..118c1aa95 100644 --- a/src/core/hle/kernel/scheduler.cpp +++ b/src/core/hle/kernel/scheduler.cpp @@ -21,7 +21,7 @@ namespace Kernel { -GlobalScheduler::GlobalScheduler(Core::System& system) : system{system} {} +GlobalScheduler::GlobalScheduler(KernelCore& kernel) : kernel{kernel} {} GlobalScheduler::~GlobalScheduler() = default; @@ -35,7 +35,7 @@ void GlobalScheduler::RemoveThread(std::shared_ptr<Thread> thread) { } void GlobalScheduler::UnloadThread(std::size_t core) { - Scheduler& sched = system.Scheduler(core); + Scheduler& sched = kernel.Scheduler(core); sched.UnloadThread(); } @@ -50,7 +50,7 @@ void GlobalScheduler::SelectThread(std::size_t core) { sched.is_context_switch_pending = sched.selected_thread != sched.current_thread; std::atomic_thread_fence(std::memory_order_seq_cst); }; - Scheduler& sched = system.Scheduler(core); + Scheduler& sched = kernel.Scheduler(core); Thread* current_thread = nullptr; // Step 1: Get top thread in schedule queue. current_thread = scheduled_queue[core].empty() ? nullptr : scheduled_queue[core].front(); |