Hi
i am new to the concurrency programming
I have a 32bit app which uses a parallel_for
I need to add a clr dll to the app which requires me to mark the
"common language runtime support" property - which results in a debug error
that says "Error: concurrency runtime is not supported when compiling clr"
So i need to convert the parallel_for to a regular for
the parallel_for looks like that:
Concurrecny::parallel_for(0, numOfObjects, [filenames, stringsize, numFields](int value){
.....
});
in order to convert it to a regular for i should declare a function that looks like this:
int FunctionFor(char* filenames, int stringsize, int numFields, int value)
{...}
and call it in a for :
for (int j = 0; j < numOfObjects; j++)
{
FunctionFor(filenames, stringsize, numFields, j);
}
am i missing anything?
Thanks!
btw:
if i create an app which runs a parallel_for what headers\dlls (besides ppl.h)
should i add to the solution?
Thanks again
dj4400
What I have tried:
googling it
writing a sample with parallel_for