C++ Standard Thread Library
The upcoming C++ standard (C++0x) will support multithreading and concurrency both as an inherent part of the memory model, and as part of the C++ Standard Library.
With the just::thread C++ Standard Thread Library
implementation, you can start using the C++0x thread library
today — no need to wait for a new compiler.
Order your copy of just::thread today, and get started within minutes.
Features
- Developed by Anthony Willians, author or co-author of many of the threading-related proposals for C++0x, author of C++ Concurrency in Action (due to be published by Manning in 2009) and maintainer of the Boost thread library.
- Tight adherence to the C++0x working draft.
std::threadclass for launching and managing threads.- Mutex classes (
std::mutex,std::timed_mutex, etc.) for protecting shared data. - Condition variables (
std::condition_variableandstd::condition_variable_any) for synchronizing operations. - Atomic types (
std::atomic_int,std::atomic_long, etc.) for low level atomic access. - Futures and promises (
std::unique_future,std::promise, etc.) for communicating data between threads. - Compatible with Microsoft Visual Studio 2008 and Microsoft Visual C++ Express 2008 for 32-bit Windows targets.
- Support for
std::tr1::reffrom Microsoft Visual Studio 2008 Service Pack 1 for passing references to a thread function. - Full documentation available online.
- Special debug mode for identifying the call chain leading to a deadlock.
Coming Soon
- Support for gcc on 32-bit and 64-bit Linux (currently in alpha testing).
- Support for 64-bit Windows.
- Support for other Windows compilers, including Microsoft Visual Studio 2005 (VC 8).