summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/common/thread.cpp11
-rw-r--r--src/common/thread.h1
2 files changed, 0 insertions, 12 deletions
diff --git a/src/common/thread.cpp b/src/common/thread.cpp
index a7267b637..4bcb65236 100644
--- a/src/common/thread.cpp
+++ b/src/common/thread.cpp
@@ -25,13 +25,6 @@
namespace Common {
-#ifdef _WIN32
-// Supporting functions
-void SleepCurrentThread(int ms) {
- Sleep(ms);
-}
-#endif
-
#ifdef _MSC_VER
void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask) {
@@ -97,10 +90,6 @@ void SetCurrentThreadAffinity(u32 mask) {
}
#ifndef _WIN32
-void SleepCurrentThread(int ms) {
- usleep(1000 * ms);
-}
-
void SwitchCurrentThread() {
usleep(1000 * 1);
}
diff --git a/src/common/thread.h b/src/common/thread.h
index c20809021..5d3f39bd0 100644
--- a/src/common/thread.h
+++ b/src/common/thread.h
@@ -83,7 +83,6 @@ private:
std::size_t generation; // Incremented once each time the barrier is used
};
-void SleepCurrentThread(int ms);
void SwitchCurrentThread(); // On Linux, this is equal to sleep 1ms
void SetCurrentThreadName(const char* name);