Hussein Baghdadi wrote:Hi,
How do you compare C++11 concurrency support to Grand Central Dispatch?
Any plans or possibilities to include GCD as a part of C++11?
Thanks.
As I understand it, GCD provides a
thread pool implementation: you submit tasks, and the runtime executes them concurrently when possible. The basics of this are covered by
std::async, but it's not a complete match. Thread pools are currently something under discussion for the next C++ standard, and there are existing C++ libraries that provide them, but GCD will not be included as-is --- for one thing, it's a C level API that does not deal with exceptions.