Executor that executes in parallel using the given thread pool.
Definition at line 42 of file executor.h.
#include <bvh/v2/executor.h>
◆ ParallelExecutor()
| bvh::v2::ParallelExecutor::ParallelExecutor |
( |
ThreadPool & | thread_pool, |
|
|
size_t | parallel_threshold = 1024 ) |
|
inline |
◆ for_each()
template<typename Loop>
| void bvh::v2::ParallelExecutor::for_each |
( |
size_t | begin, |
|
|
size_t | end, |
|
|
const Loop & | loop ) |
|
inline |
◆ reduce()
template<typename T, typename Reduce, typename Join>
| T bvh::v2::ParallelExecutor::reduce |
( |
size_t | begin, |
|
|
size_t | end, |
|
|
const T & | init, |
|
|
const Reduce & | reduce, |
|
|
const Join & | join ) |
|
inline |
◆ parallel_threshold
| size_t bvh::v2::ParallelExecutor::parallel_threshold |
◆ thread_pool
| ThreadPool& bvh::v2::ParallelExecutor::thread_pool |
The documentation for this struct was generated from the following file: