diff options
author | Feng Chen <vonchenplus@gmail.com> | 2021-09-25 17:01:53 +0200 |
---|---|---|
committer | Feng Chen <vonchenplus@gmail.com> | 2021-09-29 03:51:20 +0200 |
commit | 5fbfc4c19eaca2ad88bf34ec33d068ffab6fe672 (patch) | |
tree | 95a899841bb6e1505372f5994bda3537ee2f940a /src/core/hle/kernel/kernel.h | |
parent | Fix KScopedAutoObject object leak when SendSyncRequest (diff) | |
download | yuzu-5fbfc4c19eaca2ad88bf34ec33d068ffab6fe672.tar yuzu-5fbfc4c19eaca2ad88bf34ec33d068ffab6fe672.tar.gz yuzu-5fbfc4c19eaca2ad88bf34ec33d068ffab6fe672.tar.bz2 yuzu-5fbfc4c19eaca2ad88bf34ec33d068ffab6fe672.tar.lz yuzu-5fbfc4c19eaca2ad88bf34ec33d068ffab6fe672.tar.xz yuzu-5fbfc4c19eaca2ad88bf34ec33d068ffab6fe672.tar.zst yuzu-5fbfc4c19eaca2ad88bf34ec33d068ffab6fe672.zip |
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r-- | src/core/hle/kernel/kernel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index 901d43da9..b6658b437 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h @@ -49,6 +49,7 @@ class KScheduler; class KServerSession; class KSession; class KSharedMemory; +class KSharedMemoryInfo; class KThread; class KTransferMemory; class KWritableEvent; @@ -309,6 +310,8 @@ public: return slab_heap_container->session; } else if constexpr (std::is_same_v<T, KSharedMemory>) { return slab_heap_container->shared_memory; + } else if constexpr (std::is_same_v<T, KSharedMemoryInfo>) { + return slab_heap_container->shared_memory_info; } else if constexpr (std::is_same_v<T, KThread>) { return slab_heap_container->thread; } else if constexpr (std::is_same_v<T, KTransferMemory>) { @@ -362,6 +365,7 @@ private: KSlabHeap<KResourceLimit> resource_limit; KSlabHeap<KSession> session; KSlabHeap<KSharedMemory> shared_memory; + KSlabHeap<KSharedMemoryInfo> shared_memory_info; KSlabHeap<KThread> thread; KSlabHeap<KTransferMemory> transfer_memory; KSlabHeap<KWritableEvent> writeable_event; |