mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	common/thread: remove YieldCPU()
simply use the standard library yield()
This commit is contained in:
		
							parent
							
								
									1e9d60cab6
								
							
						
					
					
						commit
						1855fb3d88
					
				
					 1 changed files with 0 additions and 8 deletions
				
			
		|  | @ -96,14 +96,6 @@ private: | |||
| 
 | ||||
| void SleepCurrentThread(int ms); | ||||
| void SwitchCurrentThread(); // On Linux, this is equal to sleep 1ms
 | ||||
| 
 | ||||
| // Use this function during a spin-wait to make the current thread
 | ||||
| // relax while another thread is working. This may be more efficient
 | ||||
| // than using events because event functions use kernel calls.
 | ||||
| inline void YieldCPU() { | ||||
|     std::this_thread::yield(); | ||||
| } | ||||
| 
 | ||||
| void SetCurrentThreadName(const char* name); | ||||
| 
 | ||||
| } // namespace Common
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue