GCC: C0x11 threading support

Jonathan Wakely jwakely.gcc@gmail.com
Tue Nov 29 22:48:00 GMT 2011


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.



More information about the Gcc-help mailing list