C0x11 threading capabilities

Hi, I have some question about the threading programming capabilities of boost library. First question: The new C++ standard C++11 has a support for threading programming. I have read some times ago, that with high probability the threading library of the C++11 should be the same of boost library? If it is true, can I use the boost thread library and in the future, when the C++ standard will be completed, could I transparently switching to it? What are the differencies between the boost thread library and the future C++11 thread library? Second question: this question is strictly related to the first one. At the moment GCC supports only a small subset of threading programming features http: //wiki.apache.org/stdcxx/C++0xCompilerSupport. So using thread boost library allows me to use the full features of future C++ standard library? Or I'm limited by the compiler? Last question: what about the OpenMP directives? How they are different in terms power and flexibility for the parallel programming task respect to the boost library? Thank you Best Regards

Hi. The standard has already been accepted :-) I haven't used the threading elements of it yet, but looking at the last draft of the standard it is very similar to boost. The library implementation status is available from gnu.org, 30.3 states threads are in, but incomplete: http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html Mutexes, locks and condition variables are all in too. That page is for the SVN mainline rather than any particular release; I couldn't find a list for per-release support, but the basic thread class and yield() work on gcc 4.6 for me. Rob -- Rob Desbois Eml: rob.desbois@gmail.com Blog: http://theotherbranch.wordpress.com/ "I disapprove of what you say, but I’ll defend to the death your right to say it", Voltaire

I don't know the exact differencies between std::thread and boost::thread, but I know that just::thread is a C++11 std::thread implementation that was used by the commitee (if my information are correct) http://www.stdthread.co.uk/ Joël Lamotte
participants (3)
-
Erotavlas_turbo@libero.it
-
Klaim - Joël Lamotte
-
Rob Desbois