summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-04-17 09:52:53 +0200
committerbunnei <bunneidev@gmail.com>2021-05-06 01:40:51 +0200
commitc7d8b7421cd6bdb64410bbb0094ce540f0280c27 (patch)
tree0b24ec86f194395fac5f5688a6e14fc5dec0b7dd /src/core/hle/kernel/kernel.h
parenthle: kernel: Migrate KSession, KClientSession, and KServerSession to KAutoObject. (diff)
downloadyuzu-c7d8b7421cd6bdb64410bbb0094ce540f0280c27.tar
yuzu-c7d8b7421cd6bdb64410bbb0094ce540f0280c27.tar.gz
yuzu-c7d8b7421cd6bdb64410bbb0094ce540f0280c27.tar.bz2
yuzu-c7d8b7421cd6bdb64410bbb0094ce540f0280c27.tar.lz
yuzu-c7d8b7421cd6bdb64410bbb0094ce540f0280c27.tar.xz
yuzu-c7d8b7421cd6bdb64410bbb0094ce540f0280c27.tar.zst
yuzu-c7d8b7421cd6bdb64410bbb0094ce540f0280c27.zip
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r--src/core/hle/kernel/kernel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index ecced1034..f07f0276e 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -42,6 +42,7 @@ class KScheduler;
class KSession;
class KSharedMemory;
class KThread;
+class KTransferMemory;
class KWritableEvent;
class PhysicalCore;
class Process;
@@ -278,6 +279,8 @@ public:
return slab_heap_container->client_session;
} else if constexpr (std::is_same_v<T, KSession>) {
return slab_heap_container->session;
+ } else if constexpr (std::is_same_v<T, KTransferMemory>) {
+ return slab_heap_container->transfer_memory;
}
}
@@ -320,6 +323,7 @@ private:
KSlabHeap<KWritableEvent> writeable_event;
KSlabHeap<KClientSession> client_session;
KSlabHeap<KSession> session;
+ KSlabHeap<KTransferMemory> transfer_memory;
};
std::unique_ptr<SlabHeapContainer> slab_heap_container;