diff options
author | bunnei <bunneidev@gmail.com> | 2021-04-10 07:42:23 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-05-06 01:40:51 +0200 |
commit | 89edbe8aa20d278d6f2c5ab735163f0d96ff88d2 (patch) | |
tree | 568023bd7dbb880730c2cbbcbafe025045fe2f7b /src/core/hle/kernel/k_scheduler.h | |
parent | hle: kernel: Move slab heap management to KernelCore. (diff) | |
download | yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.tar yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.tar.gz yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.tar.bz2 yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.tar.lz yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.tar.xz yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.tar.zst yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.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 8cb5f6f36..01387b892 100644 --- a/src/core/hle/kernel/k_scheduler.h +++ b/src/core/hle/kernel/k_scheduler.h @@ -51,7 +51,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. @@ -173,7 +173,7 @@ private: KThread* prev_thread{}; std::atomic<KThread*> current_thread{}; - std::unique_ptr<KThread> idle_thread; + KThread* idle_thread{}; std::shared_ptr<Common::Fiber> switch_fiber{}; |