mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Thread: Added more descriptive comment to WaitCurrentThread.
This commit is contained in:
		
							parent
							
								
									cad2f21985
								
							
						
					
					
						commit
						d4bd2f2e5d
					
				
					 2 changed files with 10 additions and 2 deletions
				
			
		|  | @ -274,7 +274,11 @@ Thread* NextThread() { | ||||||
|     return Kernel::g_object_pool.GetFast<Thread>(next); |     return Kernel::g_object_pool.GetFast<Thread>(next); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /// Puts the current thread in the wait state for the given type
 | /**
 | ||||||
|  |  * Puts the current thread in the wait state for the given type | ||||||
|  |  * @param wait_type Type of wait | ||||||
|  |  * @param wait_handle Handle of Kernel object that we are waiting on, defaults to current thread | ||||||
|  |  */ | ||||||
| void WaitCurrentThread(WaitType wait_type, Handle wait_handle) { | void WaitCurrentThread(WaitType wait_type, Handle wait_handle) { | ||||||
|     Thread* thread = GetCurrentThread(); |     Thread* thread = GetCurrentThread(); | ||||||
|     thread->wait_type = wait_type; |     thread->wait_type = wait_type; | ||||||
|  |  | ||||||
|  | @ -69,7 +69,11 @@ void ArbitrateAllThreads(u32 arbiter, u32 address); | ||||||
| /// Gets the current thread handle
 | /// Gets the current thread handle
 | ||||||
| Handle GetCurrentThreadHandle(); | Handle GetCurrentThreadHandle(); | ||||||
| 
 | 
 | ||||||
| /// Puts the current thread in the wait state for the given type
 | /**
 | ||||||
|  |  * Puts the current thread in the wait state for the given type | ||||||
|  |  * @param wait_type Type of wait | ||||||
|  |  * @param wait_handle Handle of Kernel object that we are waiting on, defaults to current thread | ||||||
|  |  */ | ||||||
| void WaitCurrentThread(WaitType wait_type, Handle wait_handle=GetCurrentThreadHandle()); | void WaitCurrentThread(WaitType wait_type, Handle wait_handle=GetCurrentThreadHandle()); | ||||||
| 
 | 
 | ||||||
| /// Put current thread in a wait state - on WaitSynchronization
 | /// Put current thread in a wait state - on WaitSynchronization
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue