diff options
author | Liam <byteslice@airmail.cc> | 2022-07-02 18:33:49 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-07-02 18:33:49 +0200 |
commit | ed0319cfed2c99e6366aaf725d96bb28a9332e4d (patch) | |
tree | 1598e6d320005e0d177106e28ebc6728234f1f24 /src/core/hle/kernel/k_scheduler.cpp | |
parent | Merge pull request #7454 from FernandoS27/new-core-timing (diff) | |
download | yuzu-ed0319cfed2c99e6366aaf725d96bb28a9332e4d.tar yuzu-ed0319cfed2c99e6366aaf725d96bb28a9332e4d.tar.gz yuzu-ed0319cfed2c99e6366aaf725d96bb28a9332e4d.tar.bz2 yuzu-ed0319cfed2c99e6366aaf725d96bb28a9332e4d.tar.lz yuzu-ed0319cfed2c99e6366aaf725d96bb28a9332e4d.tar.xz yuzu-ed0319cfed2c99e6366aaf725d96bb28a9332e4d.tar.zst yuzu-ed0319cfed2c99e6366aaf725d96bb28a9332e4d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/k_scheduler.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/hle/kernel/k_scheduler.cpp b/src/core/hle/kernel/k_scheduler.cpp index d586b3f5c..d599d2bcb 100644 --- a/src/core/hle/kernel/k_scheduler.cpp +++ b/src/core/hle/kernel/k_scheduler.cpp @@ -622,7 +622,7 @@ void KScheduler::YieldToAnyThread(KernelCore& kernel) { } KScheduler::KScheduler(Core::System& system_, s32 core_id_) : system{system_}, core_id{core_id_} { - switch_fiber = std::make_shared<Common::Fiber>(OnSwitch, this); + switch_fiber = std::make_shared<Common::Fiber>([this] { SwitchToCurrent(); }); state.needs_scheduling.store(true); state.interrupt_task_thread_runnable = false; state.should_count_idle = false; @@ -778,11 +778,6 @@ void KScheduler::ScheduleImpl() { next_scheduler.SwitchContextStep2(); } -void KScheduler::OnSwitch(void* this_scheduler) { - KScheduler* sched = static_cast<KScheduler*>(this_scheduler); - sched->SwitchToCurrent(); -} - void KScheduler::SwitchToCurrent() { while (true) { { |