diff options
author | bunnei <bunneidev@gmail.com> | 2021-02-27 20:56:04 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-02-27 20:56:04 +0100 |
commit | 51fb0a6f9647ba199da10fe4f018ee36e44e65ba (patch) | |
tree | 89cd2ad6dfb310587aa546bb7b9847762795f08f /src/core/hle/kernel/k_scheduler.h | |
parent | Merge pull request #5953 from bunnei/memory-refactor-1 (diff) | |
download | yuzu-51fb0a6f9647ba199da10fe4f018ee36e44e65ba.tar yuzu-51fb0a6f9647ba199da10fe4f018ee36e44e65ba.tar.gz yuzu-51fb0a6f9647ba199da10fe4f018ee36e44e65ba.tar.bz2 yuzu-51fb0a6f9647ba199da10fe4f018ee36e44e65ba.tar.lz yuzu-51fb0a6f9647ba199da10fe4f018ee36e44e65ba.tar.xz yuzu-51fb0a6f9647ba199da10fe4f018ee36e44e65ba.tar.zst yuzu-51fb0a6f9647ba199da10fe4f018ee36e44e65ba.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/k_scheduler.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/kernel/k_scheduler.h b/src/core/hle/kernel/k_scheduler.h index f595b9a5c..a4285c595 100644 --- a/src/core/hle/kernel/k_scheduler.h +++ b/src/core/hle/kernel/k_scheduler.h @@ -68,12 +68,12 @@ public: void OnThreadStart(); - [[nodiscard]] std::shared_ptr<Common::Fiber>& ControlContext() { - return switch_fiber; + [[nodiscard]] Common::Fiber* ControlContext() { + return switch_fiber.get(); } - [[nodiscard]] const std::shared_ptr<Common::Fiber>& ControlContext() const { - return switch_fiber; + [[nodiscard]] const Common::Fiber* ControlContext() const { + return switch_fiber.get(); } [[nodiscard]] u64 UpdateHighestPriorityThread(KThread* highest_thread); @@ -178,7 +178,7 @@ private: KThread* idle_thread; - std::shared_ptr<Common::Fiber> switch_fiber{}; + std::unique_ptr<Common::Fiber> switch_fiber{}; struct SchedulingState { std::atomic<bool> needs_scheduling; |