diff options
author | bunnei <bunneidev@gmail.com> | 2021-01-21 22:00:16 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-01-29 06:42:26 +0100 |
commit | 6e953f7f0294d945ba9d6f08350d5dccb0d76075 (patch) | |
tree | 92a498827c4de7dd372731eff83c66aa3f57f060 /src/core/hle/kernel/k_scheduler.h | |
parent | hle: kernel: k_scheduler: Use atomics for current_thread, etc. (diff) | |
download | yuzu-6e953f7f0294d945ba9d6f08350d5dccb0d76075.tar yuzu-6e953f7f0294d945ba9d6f08350d5dccb0d76075.tar.gz yuzu-6e953f7f0294d945ba9d6f08350d5dccb0d76075.tar.bz2 yuzu-6e953f7f0294d945ba9d6f08350d5dccb0d76075.tar.lz yuzu-6e953f7f0294d945ba9d6f08350d5dccb0d76075.tar.xz yuzu-6e953f7f0294d945ba9d6f08350d5dccb0d76075.tar.zst yuzu-6e953f7f0294d945ba9d6f08350d5dccb0d76075.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/k_scheduler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_scheduler.h b/src/core/hle/kernel/k_scheduler.h index e0d052593..f595b9a5c 100644 --- a/src/core/hle/kernel/k_scheduler.h +++ b/src/core/hle/kernel/k_scheduler.h @@ -54,7 +54,7 @@ public: /// Returns true if the scheduler is idle [[nodiscard]] bool IsIdle() const { - return GetCurrentThread() == idle_thread.get(); + return GetCurrentThread() == idle_thread; } /// Gets the timestamp for the last context switch in ticks. @@ -176,7 +176,7 @@ private: KThread* prev_thread{}; std::atomic<KThread*> current_thread{}; - std::shared_ptr<KThread> idle_thread; + KThread* idle_thread; std::shared_ptr<Common::Fiber> switch_fiber{}; |