mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Merge pull request #2396 from Subv/sema_acquire
Kernel/Semaphore: Fixed a regression in semaphore waits.
This commit is contained in:
		
						commit
						59f4f1d7ff
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -35,7 +35,8 @@ bool Semaphore::ShouldWait(Thread* thread) const { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void Semaphore::Acquire(Thread* thread) { | void Semaphore::Acquire(Thread* thread) { | ||||||
|     ASSERT_MSG(!ShouldWait(thread), "object unavailable!"); |     if (available_count <= 0) | ||||||
|  |         return; | ||||||
|     --available_count; |     --available_count; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue