aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWeiyi Wang <wwylele@gmail.com>2018-09-22 00:32:19 -0400
committerfearlessTobi <thm.frey@gmail.com>2018-09-22 23:27:42 +0200
commitdd7df52d63de4ee311f2ccd68a2f57a79a4d9c3a (patch)
tree850b7d8234a21e2663666730adca172b32b3581f
parentd041aee63c1aad8348b3295d938ffae8c024f563 (diff)
common/thread: remove YieldCPU()
simply use the standard library yield()
-rw-r--r--src/common/thread.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/common/thread.h b/src/common/thread.h
index 12a1c095cb..6cbdb96a3f 100644
--- a/src/common/thread.h
+++ b/src/common/thread.h
@@ -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