diff options
author | bunnei <bunneidev@gmail.com> | 2021-08-07 07:58:46 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-12-07 01:39:16 +0100 |
commit | 3bd5d4b6f8887ffe302a73e3ad595f58409b5c9e (patch) | |
tree | dca57ef24acc7094d5237694b351e38ae7676043 /src/core/hle/kernel/k_scheduler.cpp | |
parent | core: hle: kernel: Reflect non-emulated threads as core 3. (diff) | |
download | yuzu-3bd5d4b6f8887ffe302a73e3ad595f58409b5c9e.tar yuzu-3bd5d4b6f8887ffe302a73e3ad595f58409b5c9e.tar.gz yuzu-3bd5d4b6f8887ffe302a73e3ad595f58409b5c9e.tar.bz2 yuzu-3bd5d4b6f8887ffe302a73e3ad595f58409b5c9e.tar.lz yuzu-3bd5d4b6f8887ffe302a73e3ad595f58409b5c9e.tar.xz yuzu-3bd5d4b6f8887ffe302a73e3ad595f58409b5c9e.tar.zst yuzu-3bd5d4b6f8887ffe302a73e3ad595f58409b5c9e.zip |
Diffstat (limited to 'src/core/hle/kernel/k_scheduler.cpp')
-rw-r--r-- | src/core/hle/kernel/k_scheduler.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_scheduler.cpp b/src/core/hle/kernel/k_scheduler.cpp index 6a7d80d03..4bae69f71 100644 --- a/src/core/hle/kernel/k_scheduler.cpp +++ b/src/core/hle/kernel/k_scheduler.cpp @@ -617,13 +617,17 @@ KScheduler::KScheduler(Core::System& system_, s32 core_id_) : system{system_}, c state.highest_priority_thread = nullptr; } -KScheduler::~KScheduler() { +void KScheduler::Finalize() { if (idle_thread) { idle_thread->Close(); idle_thread = nullptr; } } +KScheduler::~KScheduler() { + ASSERT(!idle_thread); +} + KThread* KScheduler::GetCurrentThread() const { if (auto result = current_thread.load(); result) { return result; |