mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Kernel: Added freeing of kernel objects on emulator shutdown.
This commit is contained in:
		
							parent
							
								
									83a4ad2885
								
							
						
					
					
						commit
						f49ac3a2d7
					
				
					 3 changed files with 13 additions and 0 deletions
				
			
		|  | @ -132,12 +132,16 @@ Object* ObjectPool::CreateByIDType(int type) { | |||
|     } | ||||
| } | ||||
| 
 | ||||
| /// Initialize the kernel
 | ||||
| void Init() { | ||||
|     Kernel::ThreadingInit(); | ||||
| } | ||||
| 
 | ||||
| /// Shutdown the kernel
 | ||||
| void Shutdown() { | ||||
|     Kernel::ThreadingShutdown(); | ||||
| 
 | ||||
|     g_object_pool.Clear(); // Free all kernel objects
 | ||||
| } | ||||
| 
 | ||||
| /**
 | ||||
|  |  | |||
|  | @ -167,6 +167,12 @@ private: | |||
| extern ObjectPool g_object_pool; | ||||
| extern Handle g_main_thread; | ||||
| 
 | ||||
| /// Initialize the kernel
 | ||||
| void Init(); | ||||
| 
 | ||||
| /// Shutdown the kernel
 | ||||
| void Shutdown(); | ||||
| 
 | ||||
| /**
 | ||||
|  * Loads executable stored at specified address | ||||
|  * @entry_point Entry point in memory of loaded executable | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue