
15 Apr
2012
15 Apr
'12
7:46 a.m.
On Sunday, April 15, 2012 08:22 AM, Vicente J. Botet Escriba wrote:
E.g. I have started to implement some breaking changes on Boost.Thread as e.g. an incompatibility with the C++11 semantics of the thread destructor. Boost.Thread detach the thread at destruction time, C++11 calls std::terminate if the thread is joinable at destruction time. I have already started the stage 0th and I would like to pass to the stage 1st for the next release.
In this case, it would be useful to have RAII classes for joining and detaching to prevent std::terminate from being called. In fact, I think Anthony writes in his book that scope based thread_joiner should be implemented by the user since it didn't make the standard. Ben