Skip to content
Snippets Groups Projects
Commit e0ce07aa authored by Weiyi Wang's avatar Weiyi Wang Committed by fearlessTobi
Browse files

common/thread: remove YieldCPU()

simply use the standard library yield()
parent 5659d5d2
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment