summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGravatar Lioncash2018-11-21 21:37:08 -0500
committerGravatar Lioncash2018-11-21 21:37:11 -0500
commit1d555fdd25fd33a6b14df59dc3291905573f142c (patch)
treede02ae222ca6e3110fa20e6f752a4e18d1f08262 /src/common
parentMerge pull request #1753 from FernandoS27/ufbtype (diff)
downloadyuzu-1d555fdd25fd33a6b14df59dc3291905573f142c.tar.gz
yuzu-1d555fdd25fd33a6b14df59dc3291905573f142c.tar.xz
yuzu-1d555fdd25fd33a6b14df59dc3291905573f142c.zip
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.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/thread.cpp10
-rw-r--r--src/common/thread.h2
2 files changed, 0 insertions, 12 deletions
diff --git a/src/common/thread.cpp b/src/common/thread.cpp
index 9e207118f..a7267b637 100644
--- a/src/common/thread.cpp
+++ b/src/common/thread.cpp
@@ -25,16 +25,6 @@
25 25
26namespace Common { 26namespace Common {
27 27
28int CurrentThreadId() {
29#ifdef _MSC_VER
30 return GetCurrentThreadId();
31#elif defined __APPLE__
32 return mach_thread_self();
33#else
34 return 0;
35#endif
36}
37
38#ifdef _WIN32 28#ifdef _WIN32
39// Supporting functions 29// Supporting functions
40void SleepCurrentThread(int ms) { 30void SleepCurrentThread(int ms) {
diff --git a/src/common/thread.h b/src/common/thread.h
index 6cbdb96a3..c20809021 100644
--- a/src/common/thread.h
+++ b/src/common/thread.h
@@ -13,8 +13,6 @@
13 13
14namespace Common { 14namespace Common {
15 15
16int CurrentThreadId();
17
18void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask); 16void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask);
19void SetCurrentThreadAffinity(u32 mask); 17void SetCurrentThreadAffinity(u32 mask);
20 18