From 41d3b29ec0eaccac1a830c967869df5c4a1e2ff0 Mon Sep 17 00:00:00 2001 From: Michael Glassford Date: Tue, 29 Mar 2005 16:19:32 +0000 Subject: [PATCH] Add assert() at beginning of thread::join(). [SVN r27868] --- src/thread.cpp | 1 + 1 file changed, 1 insertion(+) 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);