mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Thread: Updated VerifyWait to be more readable (but functionally the same).
This commit is contained in:
		
							parent
							
								
									4d6c96b7d8
								
							
						
					
					
						commit
						12e2a59565
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		|  | @ -146,12 +146,11 @@ void ChangeReadyState(Thread* t, bool ready) { | |||
| inline bool VerifyWait(const Handle& thread, WaitType type, Handle handle) { | ||||
|     Handle wait_id = 0; | ||||
|     Thread *t = g_object_pool.GetFast<Thread>(thread); | ||||
|     if (t) { | ||||
|         if (type == t->wait_type && handle == t->wait_handle) { | ||||
|             return true; | ||||
|         } | ||||
|     if (t != nullptr && type == t->wait_type && handle == t->wait_handle) { | ||||
|         return true; | ||||
|     } else { | ||||
|         ERROR_LOG(KERNEL, "thread 0x%08X does not exist", thread); | ||||
|         return false; | ||||
|     } | ||||
|     return false; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue