From bc2684fd40f9b1b3fc58762084c09c3ff4f7e13d Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 18 Apr 2015 12:40:07 +0000 Subject: [PATCH] thread: do not join std::thread instances. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For some reasons std::thread can’t be joined in Visual Studio 2013. Needs more investigation but right now it’s Ludum Dare and I don’t have time. --- src/sys/threadbase.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sys/threadbase.h b/src/sys/threadbase.h index 8273e419..a5db2c17 100644 --- a/src/sys/threadbase.h +++ b/src/sys/threadbase.h @@ -428,7 +428,9 @@ public: #if !defined(LOL_FEATURE_THREADS) || !LOL_FEATURE_THREADS /* Nothing */ #elif LOL_FEATURE_CXX11_THREADS - m_thread.join(); + /* FIXME: this does not work in Visual Studio 2013! */ + //m_thread.join(); + m_thread.detach(); #elif defined HAVE_PTHREAD_H pthread_join(m_thread, nullptr); #elif defined _WIN32