mirror of
				https://git.tardis.systems/mirrors/yuzu
				synced 2025-10-31 10:44:49 +01:00 
			
		
		
		
	fixup! hle: kernel: Add initial impl. of KAutoObjectWithListContainer.
This commit is contained in:
		
							parent
							
								
									25538db150
								
							
						
					
					
						commit
						51aa5a5364
					
				| @ -21,15 +21,8 @@ void KAutoObjectWithListContainer::Unregister(KAutoObjectWithList* obj) { | ||||
| size_t KAutoObjectWithListContainer::GetOwnedCount(KProcess* owner) { | ||||
|     KScopedLightLock lk(m_lock); | ||||
| 
 | ||||
|     size_t count = 0; | ||||
| 
 | ||||
|     for (auto& obj : m_object_list) { | ||||
|         if (obj.GetOwner() == owner) { | ||||
|             count++; | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     return count; | ||||
|     return std::count_if(m_object_list.begin(), m_object_list.end(), | ||||
|                          [&](const auto& obj) { return obj.GetOwner() == owner; }); | ||||
| } | ||||
| 
 | ||||
| } // namespace Kernel
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user