summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorGravatar bunnei2021-04-17 00:52:53 -0700
committerGravatar bunnei2021-05-05 16:40:51 -0700
commitc7d8b7421cd6bdb64410bbb0094ce540f0280c27 (patch)
tree0b24ec86f194395fac5f5688a6e14fc5dec0b7dd /src/core/hle/kernel/kernel.h
parenthle: kernel: Migrate KSession, KClientSession, and KServerSession to KAutoObj... (diff)
downloadyuzu-c7d8b7421cd6bdb64410bbb0094ce540f0280c27.tar.gz
yuzu-c7d8b7421cd6bdb64410bbb0094ce540f0280c27.tar.xz
yuzu-c7d8b7421cd6bdb64410bbb0094ce540f0280c27.zip
hle: kernel: Migrate KTransferMemory to KAutoObject.
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;
42class KSession; 42class KSession;
43class KSharedMemory; 43class KSharedMemory;
44class KThread; 44class KThread;
45class KTransferMemory;
45class KWritableEvent; 46class KWritableEvent;
46class PhysicalCore; 47class PhysicalCore;
47class Process; 48class Process;
@@ -278,6 +279,8 @@ public:
278 return slab_heap_container->client_session; 279 return slab_heap_container->client_session;
279 } else if constexpr (std::is_same_v<T, KSession>) { 280 } else if constexpr (std::is_same_v<T, KSession>) {
280 return slab_heap_container->session; 281 return slab_heap_container->session;
282 } else if constexpr (std::is_same_v<T, KTransferMemory>) {
283 return slab_heap_container->transfer_memory;
281 } 284 }
282 } 285 }
283 286
@@ -320,6 +323,7 @@ private:
320 KSlabHeap<KWritableEvent> writeable_event; 323 KSlabHeap<KWritableEvent> writeable_event;
321 KSlabHeap<KClientSession> client_session; 324 KSlabHeap<KClientSession> client_session;
322 KSlabHeap<KSession> session; 325 KSlabHeap<KSession> session;
326 KSlabHeap<KTransferMemory> transfer_memory;
323 }; 327 };
324 328
325 std::unique_ptr<SlabHeapContainer> slab_heap_container; 329 std::unique_ptr<SlabHeapContainer> slab_heap_container;