| 278 | |
| 279 | template <typename TBody> |
| 280 | inline void ParallelFor(ILocalExecutor& executor, ui32 from, ui32 to, TBody&& body) { |
| 281 | ILocalExecutor::TExecRangeParams params(from, to); |
| 282 | params.SetBlockCountToThreadCount(); |
| 283 | executor.ExecRange(std::forward<TBody>(body), params, TLocalExecutor::WAIT_COMPLETE); |
| 284 | } |
| 285 | |
| 286 | template <typename TBody> |
| 287 | inline void ParallelFor(ui32 from, ui32 to, TBody&& body) { |