
8 Nov
2012
8 Nov
'12
7:26 p.m.
after updating from 1.51.0 to 1.52.0 call to a thread::join() throws "invalid_argument" / not joinable. I see that there is a change with regards to thread d-tor in this version but I don't really understand if and why this is related.
Should joinable() be called now before every join()?
Yes, you should check that the thread is joinable or ensure that BOOST_THREAD_TRROW_IF_PRECONDITION_NOT_SATISFIED is not defined. http://www.boost.org/doc/libs/1_52_0/doc/html/thread/thread_management.html#...