aboutsummaryrefslogtreecommitdiff
path: root/src/threading/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/threading/thread.cpp')
-rw-r--r--src/threading/thread.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/threading/thread.cpp b/src/threading/thread.cpp
index 8688c4cbf..ecf8563f1 100644
--- a/src/threading/thread.cpp
+++ b/src/threading/thread.cpp
@@ -116,9 +116,7 @@ bool Thread::start()
#if USE_CPP11_THREADS
try {
- m_thread_obj = new std::thread(threadProc, this);
- m_thread_id = m_thread_obj->get_id();
- m_thread_handle = m_thread_obj->native_handle();
+ m_thread_obj = new std::thread(threadProc, this);
} catch (const std::system_error &e) {
return false;
}
@@ -135,8 +133,6 @@ bool Thread::start()
if (status)
return false;
- m_thread_id = m_thread_handle;
-
#endif
while (!m_running)
@@ -234,12 +230,6 @@ bool Thread::getReturnValue(void **ret)
}
-bool Thread::isCurrentThread()
-{
- return thr_is_current_thread(m_thread_id);
-}
-
-
#if USE_CPP11_THREADS || USE_POSIX_THREADS
void *Thread::threadProc(void *param)
#elif defined(_WIN32_WCE)