#include <iostream>
#include <future>
#include <random>
{
return std::generate_canonical<double, 100>(gen) + std::generate_canonical<double, 100>(gen) +
std::generate_canonical<double, 100>(gen) + std::generate_canonical<double, 100>(gen) +
std::generate_canonical<double, 100>(gen);
}
{
std::mt19937 gen;
for (int i = 0; i < 3000000; ++i)
filler.Fill({wasteCPUTime(gen), wasteCPUTime(gen)});
}
{
std::array<std::thread, 8>
threads;
}
}
{
std::cout << hist.GetEntries() << '\n';
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Manages the synchronization of calls to FillN().
Buffers a thread's Fill calls and submits them to the RHistConcurrentFillManager.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
- Date
- 2015-07-09
- Warning
- This is part of the experimental API, which might change in the future. Feedback is welcome!
- Author
- Axel Naumann axel@.nosp@m.cern.nosp@m..ch
Definition in file concurrentfill.cxx.