HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ForEach.h File Reference

A unified wrapper for tbb::parallel_for and a naive std::thread fallback. More...

#include "Range.h"
#include <thread>
#include <mutex>
#include <vector>
+ Include dependency graph for ForEach.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 nanovdb
 

Functions

template<typename RangeT , typename FuncT >
void nanovdb::forEach (RangeT range, const FuncT &func)
 simple wrapper for tbb::parallel_for with a naive std fallback More...
 
template<typename FuncT >
void nanovdb::forEach (size_t begin, size_t end, size_t grainSize, const FuncT &func)
 Simple wrapper for the function defined above. More...
 
template<template< typename...> class ContainerT, typename... T, typename FuncT >
void nanovdb::forEach (const ContainerT< T...> &c, const FuncT &func)
 Simple wrapper for the function defined above, which works with std::containers. More...
 
template<template< typename...> class ContainerT, typename... T, typename FuncT >
void nanovdb::forEach (const ContainerT< T...> &c, size_t grainSize, const FuncT &func)
 Simple wrapper for the function defined above, which works with std::containers. More...
 

Detailed Description

A unified wrapper for tbb::parallel_for and a naive std::thread fallback.

Author
Ken Museth
Date
August 24, 2020

Definition in file ForEach.h.