소스 검색

common/thread: Remove unused CurrentThreadId()

This is an old function that's no longer necessary. C++11 introduced
proper threading support to the language and a thread ID can be
retrieved via std::this_thread::get_id() if it's ever needed.
Lioncash 7 년 전
부모
커밋
1d555fdd25
2개의 변경된 파일0개의 추가작업 그리고 12개의 파일을 삭제
  1. 0 10
      src/common/thread.cpp
  2. 0 2
      src/common/thread.h

+ 0 - 10
src/common/thread.cpp

@@ -25,16 +25,6 @@
 
 namespace Common {
 
-int CurrentThreadId() {
-#ifdef _MSC_VER
-    return GetCurrentThreadId();
-#elif defined __APPLE__
-    return mach_thread_self();
-#else
-    return 0;
-#endif
-}
-
 #ifdef _WIN32
 // Supporting functions
 void SleepCurrentThread(int ms) {

+ 0 - 2
src/common/thread.h

@@ -13,8 +13,6 @@
 
 namespace Common {
 
-int CurrentThreadId();
-
 void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask);
 void SetCurrentThreadAffinity(u32 mask);