Home > C++11 > Standard, Portable C++ Concurrency

Standard, Portable C++ Concurrency

Recently, I downloaded the Microsoft Visual Studio 11 IDE Beta in order to start experimenting with some C++11 features. Lo and behold, standard and portable concurrency is now supported:

At least on Windows, there’s no need to use the Win API,  Boost.Thread or ACE or any other third party library in the future to write multi-core friendly, multi-threaded C++ apps. I don’t know when GCC and/or CLANG will ship with the standard C++11 concurrency libs. Do you?

By the way, a series of quick tests verified that lambdas, strictly typed enums, auto, nullptr, std::array, std::regex, and std::atomic work. Initializer lists, raw string literals, “using” as typedef, and range-based for loops don’t work yet.

  1. March 2, 2012 at 6:50 am

    Several bits of thread are done in gcc, as well as several other parts of C++11. You can see the full list here:
    http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.200x

    • March 2, 2012 at 7:25 am

      Thanks Ray! The GCC version doesn’t seem to be cited. Do you know if it’s 4.7? My Cygwin version is 4.5.3. The version on my project development Ubuntu box is 4.4.3. The latter has been in “lock down” for awhile.

  2. Ninja's avatar
    Ninja
    March 4, 2012 at 11:53 am

    Actually basic testing seems to indicate that range based for loops do work, but intellisense does not.
    The release notes also say that RBFL works.

  3. March 4, 2012 at 12:00 pm

    I could have made a syntactical mistake, but I couldn’t get code like this to compile:

    Range For

  1. No trackbacks yet.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.