|
Boost : |
Subject: Re: [boost] [thread] Do we need thread_group now?
From: Ben Pope (benpope81_at_[hidden])
Date: 2012-04-15 03:46:29
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk