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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user