diff options
| author | 2021-04-23 17:00:15 -0700 | |
|---|---|---|
| committer | 2021-05-05 16:40:52 -0700 | |
| commit | 626f746971d1d3216a38b20680959df3a1f5f256 (patch) | |
| tree | d9b9448732e264e84557e12d7a14a40f00cb006f /src/core/hle/kernel/kernel.h | |
| parent | hle: kernel: Migrate KServerPort to KAutoObject. (diff) | |
| download | yuzu-626f746971d1d3216a38b20680959df3a1f5f256.tar.gz yuzu-626f746971d1d3216a38b20680959df3a1f5f256.tar.xz yuzu-626f746971d1d3216a38b20680959df3a1f5f256.zip | |
hle: kernel: Migrate KPort, KClientPort, and KServerPort to KAutoObject.
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index 19b3530b4..723be6b51 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h | |||
| @@ -37,6 +37,8 @@ class KClientSession; | |||
| 37 | class KEvent; | 37 | class KEvent; |
| 38 | class KLinkedListNode; | 38 | class KLinkedListNode; |
| 39 | class KMemoryManager; | 39 | class KMemoryManager; |
| 40 | class KPort; | ||
| 41 | class Process; | ||
| 40 | class KResourceLimit; | 42 | class KResourceLimit; |
| 41 | class KScheduler; | 43 | class KScheduler; |
| 42 | class KSession; | 44 | class KSession; |
| @@ -45,7 +47,6 @@ class KThread; | |||
| 45 | class KTransferMemory; | 47 | class KTransferMemory; |
| 46 | class KWritableEvent; | 48 | class KWritableEvent; |
| 47 | class PhysicalCore; | 49 | class PhysicalCore; |
| 48 | class Process; | ||
| 49 | class ServiceThread; | 50 | class ServiceThread; |
| 50 | class Synchronization; | 51 | class Synchronization; |
| 51 | class TimeManager; | 52 | class TimeManager; |
| @@ -272,6 +273,8 @@ public: | |||
| 272 | return slab_heap_container->event; | 273 | return slab_heap_container->event; |
| 273 | } else if constexpr (std::is_same_v<T, KLinkedListNode>) { | 274 | } else if constexpr (std::is_same_v<T, KLinkedListNode>) { |
| 274 | return slab_heap_container->linked_list_node; | 275 | return slab_heap_container->linked_list_node; |
| 276 | } else if constexpr (std::is_same_v<T, KPort>) { | ||
| 277 | return slab_heap_container->port; | ||
| 275 | } else if constexpr (std::is_same_v<T, Process>) { | 278 | } else if constexpr (std::is_same_v<T, Process>) { |
| 276 | return slab_heap_container->process; | 279 | return slab_heap_container->process; |
| 277 | } else if constexpr (std::is_same_v<T, KResourceLimit>) { | 280 | } else if constexpr (std::is_same_v<T, KResourceLimit>) { |
| @@ -323,6 +326,7 @@ private: | |||
| 323 | KSlabHeap<KClientSession> client_session; | 326 | KSlabHeap<KClientSession> client_session; |
| 324 | KSlabHeap<KEvent> event; | 327 | KSlabHeap<KEvent> event; |
| 325 | KSlabHeap<KLinkedListNode> linked_list_node; | 328 | KSlabHeap<KLinkedListNode> linked_list_node; |
| 329 | KSlabHeap<KPort> port; | ||
| 326 | KSlabHeap<Process> process; | 330 | KSlabHeap<Process> process; |
| 327 | KSlabHeap<KResourceLimit> resource_limit; | 331 | KSlabHeap<KResourceLimit> resource_limit; |
| 328 | KSlabHeap<KSession> session; | 332 | KSlabHeap<KSession> session; |