2
0
mirror of https://github.com/boostorg/thread.git synced 2026-02-08 23:22:13 +00:00

Add assert() at beginning of thread::join().

[SVN r27868]
This commit is contained in:
Michael Glassford
2005-03-29 16:19:32 +00:00
parent 05ceb8b1e2
commit 41d3b29ec0

View File

@@ -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<HANDLE>(m_thread), INFINITE);