Template Function quickpool::loop::create_workers

Function Documentation

template<typename Function>
std::shared_ptr<mem::aligned::vector<Worker<Function>>> quickpool::loop::create_workers(Function const &f, int begin, int end, size_t num_workers)

creates loop workers. They must be passed to each worker using a shared pointer, so that they persist if an inner parallel_for() in a nested loop exits.