summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_handle_table.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-08-07 08:05:01 +0200
committerbunnei <bunneidev@gmail.com>2021-08-07 21:18:47 +0200
commitf2b0d289833be94401edb4bb3b5b891fcda713d4 (patch)
tree5fe74ac28d1f0bd2d1ef96526d6712cf28833c1e /src/core/hle/kernel/k_handle_table.h
parentcore: hle: kernel: k_thread: Add KScopedDisableDispatch. (diff)
downloadyuzu-f2b0d289833be94401edb4bb3b5b891fcda713d4.tar
yuzu-f2b0d289833be94401edb4bb3b5b891fcda713d4.tar.gz
yuzu-f2b0d289833be94401edb4bb3b5b891fcda713d4.tar.bz2
yuzu-f2b0d289833be94401edb4bb3b5b891fcda713d4.tar.lz
yuzu-f2b0d289833be94401edb4bb3b5b891fcda713d4.tar.xz
yuzu-f2b0d289833be94401edb4bb3b5b891fcda713d4.tar.zst
yuzu-f2b0d289833be94401edb4bb3b5b891fcda713d4.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/k_handle_table.h2
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 2ff6aa160..75dcec7df 100644
--- a/src/core/hle/kernel/k_handle_table.h
+++ b/src/core/hle/kernel/k_handle_table.h
@@ -69,6 +69,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>) {
@@ -123,6 +124,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.