After work I found the mentioned article about
new multithreading C++11 features.
The author suggests in an example the use of
std::async like this:
int func1(int start, int end)
{
for (int i=start; i<end;i++)>
{
}
return result;
}
int N = GetCPUNum();
int func2(int start, int end)
{
return std::async(func1(start, (end-start)/N))+
std::async(func1(start+(end-start)/N,start+2*(end-start)/N))+
...
}
i.e the division of one sequential function call in N multi-threaded function
calls.
The article is written by Rainer Grimm and one can find in the net an
interesting C++11 OverView as pdf file.
Best regards