Re: GCC: C0x11 threading support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 29 November 2011 15:30, Erotavlas_turbo@xxxxxxxxx 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux