Skip to content
Snippets Groups Projects
Commit 5416c676 authored by Xavier Valls Pla's avatar Xavier Valls Pla Committed by Lorenzo Moneta
Browse files

Fix storing mapped elements in TThreadExecutor

parent b910e485
No related branches found
No related tags found
No related merge requests found
......@@ -147,7 +147,7 @@ auto TThreadExecutor::Map(F func, ROOT::TSeq<INTEGER> args) -> std::vector<typen
using retType = decltype(func(start));
std::vector<retType> reslist(end-start);
auto lambda = [&](unsigned int i){
reslist[i]+=func(i);
reslist[i] = func(i);
};
ParallelFor(start, end, 1, lambda);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment