my program with PPL crashes. I do suspect some mishandled share of variables. If my syntax for parallel_for construct is
parallel_for(0,p,[&x1Pt,&x2Pt,&confciInput,&formula,¶m,&method,&lowOneParam,&highOneParam](int i)
{
// ...
}
, do each thread have its own copy of confciInput and formula, for example, to work with? Or does the capture clause of lambda expression only provides access to enclosing scope local variables?
Thanks and regards.