diff options
author | bunnei <bunneidev@gmail.com> | 2021-12-13 07:43:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-13 07:43:25 +0100 |
commit | 280c77989880e81f622440b157a0ce1b7139847b (patch) | |
tree | 49a3ef8127d721dc44effb8315e5db7e796336f4 /src/core/hle/kernel/k_handle_table.h | |
parent | Merge pull request #7495 from FernandoS27/text-blit-fix-again (diff) | |
parent | hle: kernel k_scheduler: EnableScheduling: Remove redundant GetCurrentThreadPointer calls. (diff) | |
download | yuzu-280c77989880e81f622440b157a0ce1b7139847b.tar yuzu-280c77989880e81f622440b157a0ce1b7139847b.tar.gz yuzu-280c77989880e81f622440b157a0ce1b7139847b.tar.bz2 yuzu-280c77989880e81f622440b157a0ce1b7139847b.tar.lz yuzu-280c77989880e81f622440b157a0ce1b7139847b.tar.xz yuzu-280c77989880e81f622440b157a0ce1b7139847b.tar.zst yuzu-280c77989880e81f622440b157a0ce1b7139847b.zip |
Diffstat (limited to 'src/core/hle/kernel/k_handle_table.h')
-rw-r--r-- | src/core/hle/kernel/k_handle_table.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_handle_table.h b/src/core/hle/kernel/k_handle_table.h index 95ec905ae..4b114ec2f 100644 --- a/src/core/hle/kernel/k_handle_table.h +++ b/src/core/hle/kernel/k_handle_table.h @@ -68,6 +68,7 @@ public: template <typename T = KAutoObject> KScopedAutoObject<T> GetObjectWithoutPseudoHandle(Handle handle) const { // Lock and look up in table. + KScopedDisableDispatch dd(kernel); KScopedSpinLock lk(m_lock); if constexpr (std::is_same_v<T, KAutoObject>) { @@ -122,6 +123,7 @@ public: size_t num_opened; { // Lock the table. + KScopedDisableDispatch dd(kernel); KScopedSpinLock lk(m_lock); for (num_opened = 0; num_opened < num_handles; num_opened++) { // Get the current handle. |