diff --git a/src/thread.cpp b/src/thread.cpp index c3df8d6b..8d2f9658 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -220,6 +220,7 @@ bool thread::operator!=(const thread& other) const void thread::join() { + assert(m_joinable); //See race condition comment below int res = 0; #if defined(BOOST_HAS_WINTHREADS) res = WaitForSingleObject(reinterpret_cast(m_thread), INFINITE);