From d7c0fdebad493f3244aebfcab9e38a24f6594bde Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Sun, 25 Oct 2026 01:26:26 -0500 Subject: Common/Thread: Remove unused SwitchCurrentThread function. --- Source/Core/Common/Thread.cpp | 10 ---------- Source/Core/Common/Thread.h | 1 - 2 files changed, 11 deletions(-) (limited to 'Source/Core') diff --git a/Source/Core/Common/Thread.cpp b/Source/Core/Common/Thread.cpp index d9a40fc6b5..8f8f691fc1 100644 --- a/Source/Core/Common/Thread.cpp +++ b/Source/Core/Common/Thread.cpp @@ -62,11 +62,6 @@ void SleepCurrentThread(int ms) Sleep(ms); } -void SwitchCurrentThread() -{ - SwitchToThread(); -} - // Sets the debugger-visible name of the current thread. // Uses trick documented in: // https://docs.microsoft.com/en-us/visualstudio/debugger/how-to-set-a-thread-name-in-native-code @@ -161,11 +156,6 @@ void SleepCurrentThread(int ms) usleep(1000 * ms); } -void SwitchCurrentThread() -{ - usleep(1000 * 1); -} - void SetCurrentThreadName(const char* name) { #ifdef __APPLE__ diff --git a/Source/Core/Common/Thread.h b/Source/Core/Common/Thread.h index fbba27a22c..365c965e87 100644 --- a/Source/Core/Common/Thread.h +++ b/Source/Core/Common/Thread.h @@ -27,7 +27,6 @@ void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask); void SetCurrentThreadAffinity(u32 mask); 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 -- cgit v1.2.3 From fa108cf559250aff9d8d0ec812d5bdebf075b7b0 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Sun, 25 Oct 2026 01:27:52 -0500 Subject: Common/Thread: Remove unused non-Windows INFINITE macro. --- Source/Core/Common/Thread.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'Source/Core') diff --git a/Source/Core/Common/Thread.h b/Source/Core/Common/Thread.h index 365c965e87..07f509e22e 100644 --- a/Source/Core/Common/Thread.h +++ b/Source/Core/Common/Thread.h @@ -12,13 +12,6 @@ // Don't include Common.h here as it will break LogManager #include "Common/CommonTypes.h" -// This may not be defined outside _WIN32 -#ifndef _WIN32 -#ifndef INFINITE -#define INFINITE 0xffffffff -#endif -#endif - namespace Common { int CurrentThreadId(); -- cgit v1.2.3