1 #ifndef cetlib_SimultaneousFunctionSpawner_h 2 #define cetlib_SimultaneousFunctionSpawner_h 44 return std::vector<F>(nInstances,
func);
49 template <
typename FunctionToSpawn>
53 auto execute = [
this](
auto f) {
60 std::vector<std::thread>
threads;
62 threads.emplace_back(execute,
f);
65 for (
auto& thread : threads)
std::atomic< std::size_t > counter_
auto repeated_task(std::size_t const nInstances, F func)
SimultaneousFunctionSpawner(std::vector< FunctionToSpawn > const &fs)