Преглед изворни кода

thread: do not join std::thread instances.

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.
undefined
Sam Hocevar пре 9 година
родитељ
комит
bc2684fd40
1 измењених фајлова са 3 додато и 1 уклоњено
  1. +3
    -1
      src/sys/threadbase.h

+ 3
- 1
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


Loading…
Откажи
Сачувај