diff options
author | bunnei <bunneidev@gmail.com> | 2022-01-18 03:06:33 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-01-21 02:08:00 +0100 |
commit | 0b37e7cb39cb96857f3074f2bc5c7912b99baf9a (patch) | |
tree | 84ccc955b57a9eab145557eb304ee2b365499400 | |
parent | hle: kernel: KServerSession: Remove hack for CompleteSyncRequest. (diff) | |
download | yuzu-0b37e7cb39cb96857f3074f2bc5c7912b99baf9a.tar yuzu-0b37e7cb39cb96857f3074f2bc5c7912b99baf9a.tar.gz yuzu-0b37e7cb39cb96857f3074f2bc5c7912b99baf9a.tar.bz2 yuzu-0b37e7cb39cb96857f3074f2bc5c7912b99baf9a.tar.lz yuzu-0b37e7cb39cb96857f3074f2bc5c7912b99baf9a.tar.xz yuzu-0b37e7cb39cb96857f3074f2bc5c7912b99baf9a.tar.zst yuzu-0b37e7cb39cb96857f3074f2bc5c7912b99baf9a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/service_thread.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/kernel/service_thread.cpp b/src/core/hle/kernel/service_thread.cpp index 03f3dec10..4eb3a5988 100644 --- a/src/core/hle/kernel/service_thread.cpp +++ b/src/core/hle/kernel/service_thread.cpp @@ -12,6 +12,7 @@ #include "common/scope_exit.h" #include "common/thread.h" #include "core/hle/kernel/k_session.h" +#include "core/hle/kernel/k_thread.h" #include "core/hle/kernel/kernel.h" #include "core/hle/kernel/service_thread.h" @@ -50,6 +51,10 @@ ServiceThread::Impl::Impl(KernelCore& kernel, std::size_t num_threads, const std kernel.RegisterHostThread(); + // Ensure the dummy thread allocated for this host thread is closed on exit. + auto* dummy_thread = kernel.GetCurrentEmuThread(); + SCOPE_EXIT({ dummy_thread->Close(); }); + while (true) { std::function<void()> task; |