diff options
author | bunnei <bunneidev@gmail.com> | 2021-11-26 05:46:17 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-12-07 01:39:17 +0100 |
commit | abbea575cfcc9e933fbe8f277a5e9f754deb669d (patch) | |
tree | 50cf06afc61acb947ba8959a33c0e60b74951c1e /src/core/hle/kernel/k_thread.h | |
parent | hle: kernel: KSynchronizationObject: Fix variable shadowing. (diff) | |
download | yuzu-abbea575cfcc9e933fbe8f277a5e9f754deb669d.tar yuzu-abbea575cfcc9e933fbe8f277a5e9f754deb669d.tar.gz yuzu-abbea575cfcc9e933fbe8f277a5e9f754deb669d.tar.bz2 yuzu-abbea575cfcc9e933fbe8f277a5e9f754deb669d.tar.lz yuzu-abbea575cfcc9e933fbe8f277a5e9f754deb669d.tar.xz yuzu-abbea575cfcc9e933fbe8f277a5e9f754deb669d.tar.zst yuzu-abbea575cfcc9e933fbe8f277a5e9f754deb669d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/k_thread.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_thread.h b/src/core/hle/kernel/k_thread.h index 1cde71e89..be1bc59ae 100644 --- a/src/core/hle/kernel/k_thread.h +++ b/src/core/hle/kernel/k_thread.h @@ -794,6 +794,10 @@ public: class KScopedDisableDispatch { public: [[nodiscard]] explicit KScopedDisableDispatch(KernelCore& kernel_) : kernel{kernel_} { + // If we are shutting down the kernel, none of this is relevant anymore. + if (kernel.IsShuttingDown()) { + return; + } GetCurrentThread(kernel).DisableDispatch(); } |