mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-15 16:50:06 +00:00
common/thread: remove YieldCPU()
simply use the standard library yield()
This commit is contained in:
parent
5659d5d258
commit
e0ce07aa7d
@ -87,14 +87,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…
Reference in New Issue
Block a user