40#ifndef _SOURCE_TFTASKSCHEDULER_H_
41#define _SOURCE_TFTASKSCHEDULER_H_
47#include "tfThreadPool.h"
53 template<
class IndexType,
class Function>
void parallel_for(IndexType endIdx, Function&& func) {
55 tbb::parallel_for(tbb::blocked_range<IndexType>(IndexType(0), endIdx),
56 [&](
const tbb::blocked_range<IndexType>& r) {
57 for(IndexType i = r.begin(), iEnd = r.end(); i < iEnd; ++i) {
62 ThreadPool::getUniqueInstance().parallel_for(endIdx, std::forward<Function>(func));
Include Python header, disable linking to pythonX_d.lib on Windows in debug mode.
Definition tfAngleConfig.h:26