|
Boost : |
Subject: Re: [boost] [Thread] Doc bug?
From: Jonathan Wakely (jwakely.boost_at_[hidden])
Date: 2014-01-07 11:22:02
On 7 January 2014 16:11, Alexander Lamaison wrote:
> The docs [1] for the `scoped_thread` and `strict_scoped_thread` says
>
>> "While thread call std::terminate() on the destructor is the thread is
>> joinable, strict_scoped_thread<> or scoped_thread<> join the thread if
>> joinable.
>
> Several other places on the page say something similar.
>
> I was under in the impression that Boost.Thread had toyed with adopting
> this behaviour to match `std::thread` but decided against it after
> complaints on this list. Am I wrong?
It depends on a macro, but the non-standard behaviour is deprecated:
http://www.boost.org/doc/libs/1_55_0/doc/html/thread/thread_management.html#thread.thread_management.thread.destructor
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk