mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-13 18:53:05 +01:00
common/thread: remove YieldCPU()
simply use the standard library yield()
This commit is contained in:
1 parent
d041aee63c
commit
dd7df52d63
1 file changed
-8
@@ -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
|
||||
Reference in new issue
Block a user