diff options
author | bunnei <[email protected]> | 2021-03-05 17:08:17 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-05 17:08:17 -0800 |
commit | a5ab85ac37bbfed739e75ba9c2226b1e6bf1fd37 (patch) | |
tree | 503cbe4fb52939512f8ee0c976e46e9293de3c4c /src/core/hle/kernel/k_scheduler.h | |
parent | 9d010be4837cc88e28c700f640c1c101092d482a (diff) | |
download | yuzu-mainline-a5ab85ac37bbfed739e75ba9c2226b1e6bf1fd37.tar.gz yuzu-mainline-a5ab85ac37bbfed739e75ba9c2226b1e6bf1fd37.zip |
Revert "core: Switch to unique_ptr for usage of Common::Fiber."
Diffstat (limited to 'src/core/hle/kernel/k_scheduler.h')
-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 a4285c595..f595b9a5c 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]] Common::Fiber* ControlContext() { - return switch_fiber.get(); + [[nodiscard]] std::shared_ptr<Common::Fiber>& ControlContext() { + return switch_fiber; } - [[nodiscard]] const Common::Fiber* ControlContext() const { - return switch_fiber.get(); + [[nodiscard]] const std::shared_ptr<Common::Fiber>& ControlContext() const { + return switch_fiber; } [[nodiscard]] u64 UpdateHighestPriorityThread(KThread* highest_thread); @@ -178,7 +178,7 @@ private: KThread* idle_thread; - std::unique_ptr<Common::Fiber> switch_fiber{}; + std::shared_ptr<Common::Fiber> switch_fiber{}; struct SchedulingState { std::atomic<bool> needs_scheduling; |