This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC: C0x11 threading support


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]