mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-16 20:07:16 +01:00
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.
This commit is contained in:
parent
aa168b46a0
commit
61eafcee98
@ -25,16 +25,6 @@
|
|||||||
|
|
||||||
namespace Common {
|
namespace Common {
|
||||||
|
|
||||||
int CurrentThreadId() {
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
return GetCurrentThreadId();
|
|
||||||
#elif defined __APPLE__
|
|
||||||
return mach_thread_self();
|
|
||||||
#else
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// Supporting functions
|
// Supporting functions
|
||||||
void SleepCurrentThread(int ms) {
|
void SleepCurrentThread(int ms) {
|
||||||
|
@ -13,8 +13,6 @@
|
|||||||
|
|
||||||
namespace Common {
|
namespace Common {
|
||||||
|
|
||||||
int CurrentThreadId();
|
|
||||||
|
|
||||||
void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask);
|
void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask);
|
||||||
void SetCurrentThreadAffinity(u32 mask);
|
void SetCurrentThreadAffinity(u32 mask);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user