mirror of
				https://git.suyu.dev/suyu/suyu.git
				synced 2025-10-31 06:46:40 +08:00 
			
		
		
		
	core: hle: kernel: k_dynamic_resource_manager: Add KBlockInfoManager, KBlockInfoSlabHeap.
This commit is contained in:
		
							parent
							
								
									6b6c02f541
								
							
						
					
					
						commit
						3aab7d4473
					
				| @ -6,6 +6,7 @@ | |||||||
| #include "common/common_funcs.h" | #include "common/common_funcs.h" | ||||||
| #include "core/hle/kernel/k_dynamic_slab_heap.h" | #include "core/hle/kernel/k_dynamic_slab_heap.h" | ||||||
| #include "core/hle/kernel/k_memory_block.h" | #include "core/hle/kernel/k_memory_block.h" | ||||||
|  | #include "core/hle/kernel/k_page_group.h" | ||||||
| 
 | 
 | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| @ -51,8 +52,10 @@ private: | |||||||
|     DynamicSlabType* m_slab_heap{}; |     DynamicSlabType* m_slab_heap{}; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | class KBlockInfoManager : public KDynamicResourceManager<KBlockInfo> {}; | ||||||
| class KMemoryBlockSlabManager : public KDynamicResourceManager<KMemoryBlock> {}; | class KMemoryBlockSlabManager : public KDynamicResourceManager<KMemoryBlock> {}; | ||||||
| 
 | 
 | ||||||
|  | using KBlockInfoSlabHeap = typename KBlockInfoManager::DynamicSlabType; | ||||||
| using KMemoryBlockSlabHeap = typename KMemoryBlockSlabManager::DynamicSlabType; | using KMemoryBlockSlabHeap = typename KMemoryBlockSlabManager::DynamicSlabType; | ||||||
| 
 | 
 | ||||||
| } // namespace Kernel
 | } // namespace Kernel
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user