mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-10-30 23:49:01 -05:00 
			
		
		
		
	Merge pull request #1387 from FearlessTobi/port-4245
Port citra-emu/citra#4245: "common/thread: remove YieldCPU()"
This commit is contained in:
		| @@ -87,14 +87,6 @@ private: | |||||||
|  |  | ||||||
| void SleepCurrentThread(int ms); | void SleepCurrentThread(int ms); | ||||||
| void SwitchCurrentThread(); // On Linux, this is equal to sleep 1ms | 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); | void SetCurrentThreadName(const char* name); | ||||||
|  |  | ||||||
| } // namespace Common | } // namespace Common | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 bunnei
					bunnei