Skip to content

Commit

Permalink
[DF] Remove unused lambda capture
Browse files Browse the repository at this point in the history
  • Loading branch information
stwunsch committed Sep 18, 2020
1 parent b52104f commit 7612ef8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tree/dataframe/test/dataframe_concurrency.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ void ParallelRDFSnapshots()
{
// Run the RDF construction and the event loop in parallel
const auto nevts = 100u;
auto func = [&nevts] (int i) {
auto func = [&] (int i) {
std::this_thread::sleep_for(std::chrono::milliseconds(std::rand() / RAND_MAX * 200));
ROOT::RDataFrame df(nevts);
df.Define("x", "(int)rdfentry_").Snapshot("tree", "dataframe_parallel_snapshots_" + std::to_string(i) + ".root");
Expand Down Expand Up @@ -197,7 +197,7 @@ void ParallelRDFCaches()
// Run the RDF construction and the event loop in parallel
// and use an intermediate cache in the computation graph
const auto nevts = 100u;
auto func = [&nevts] {
auto func = [&] {
std::this_thread::sleep_for(std::chrono::milliseconds(std::rand() / RAND_MAX * 200));
ROOT::RDataFrame df(nevts);
auto cache = df.Define("x", "(int)rdfentry_").Cache("x");
Expand Down

0 comments on commit 7612ef8

Please sign in to comment.