mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu.git
				synced 2025-05-12 00:45:25 +00:00 
			
		
		
		
	Kernel: Updated Event and Mutex to specify handle that they are blocking for.
This commit is contained in:
		
							parent
							
								
									2003ccf09d
								
							
						
					
					
						commit
						7a1f813be1
					
				| @ -42,7 +42,7 @@ public: | |||||||
|             if (std::find(waiting_threads.begin(), waiting_threads.end(), thread) == waiting_threads.end()) { |             if (std::find(waiting_threads.begin(), waiting_threads.end(), thread) == waiting_threads.end()) { | ||||||
|                 waiting_threads.push_back(thread); |                 waiting_threads.push_back(thread); | ||||||
|             } |             } | ||||||
|             Kernel::WaitCurrentThread(WAITTYPE_EVENT); |             Kernel::WaitCurrentThread(WAITTYPE_EVENT, GetHandle()); | ||||||
|         } |         } | ||||||
|         if (reset_type != RESETTYPE_STICKY && !permanent_locked) { |         if (reset_type != RESETTYPE_STICKY && !permanent_locked) { | ||||||
|             locked = true; |             locked = true; | ||||||
|  | |||||||
| @ -48,7 +48,7 @@ public: | |||||||
|         *wait = locked; |         *wait = locked; | ||||||
| 
 | 
 | ||||||
|         if (locked) { |         if (locked) { | ||||||
|             Kernel::WaitCurrentThread(WAITTYPE_MUTEX); |             Kernel::WaitCurrentThread(WAITTYPE_MUTEX, GetHandle()); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         return 0; |         return 0; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 bunnei
						bunnei