This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC: C0x11 threading support
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: "Erotavlas_turbo at libero dot it" <Erotavlas_turbo at libero dot it>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 29 Nov 2011 16:15:29 +0000
- Subject: Re: GCC: C0x11 threading support
- References: <29051915.1677221322580617950.JavaMail.defaultUser@defaultHost>
On 29 November 2011 15:30, Erotavlas_turbo@libero.it wrote:
> So what are the differencies between the boost thread library and the future
> C++11 thread library? I have read that they should be the same...
boost::thread supports thread interruption, a feature not present in C++11.
http://www.boost.org/doc/libs/1_48_0/doc/html/thread/thread_management.html#thread.thread_management.interruption
A joinable boost::thread will detach automatically if it goes out of
scope, a std::thread will call std::terminate.
http://www.boost.org/doc/libs/1_48_0/doc/html/thread/thread_management.html#thread.thread_management.joining_and_detaching
Boost provides a thread_group class.
For more details you should probably ask on the Boost list, it's not
really relevant to GCC.