summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-23 23:51:53 +0200
committerGitHub <noreply@github.com>2018-09-23 23:51:53 +0200
commit6b05f71b671268e15ce0fd83fd7adbef8896a491 (patch)
tree1763dadf5559f41231fc2da5842c74a32fe96f31
parentMerge pull request #1385 from FearlessTobi/port-4214 (diff)
parentcommon/thread: remove YieldCPU() (diff)
downloadyuzu-6b05f71b671268e15ce0fd83fd7adbef8896a491.tar
yuzu-6b05f71b671268e15ce0fd83fd7adbef8896a491.tar.gz
yuzu-6b05f71b671268e15ce0fd83fd7adbef8896a491.tar.bz2
yuzu-6b05f71b671268e15ce0fd83fd7adbef8896a491.tar.lz
yuzu-6b05f71b671268e15ce0fd83fd7adbef8896a491.tar.xz
yuzu-6b05f71b671268e15ce0fd83fd7adbef8896a491.tar.zst
yuzu-6b05f71b671268e15ce0fd83fd7adbef8896a491.zip
-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 12a1c095c..6cbdb96a3 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