Executor that executes in parallel using the given thread pool.
Definition at line 42 of file executor.h.
Public Member Functions | |
| ParallelExecutor (ThreadPool &thread_pool, size_t parallel_threshold=1024) | |
| template<typename Loop > | |
| void | for_each (size_t begin, size_t end, const Loop &loop) |
| template<typename T , typename Reduce , typename Join > | |
| T | reduce (size_t begin, size_t end, const T &init, const Reduce &reduce, const Join &join) |
Public Member Functions inherited from bvh::v2::Executor< ParallelExecutor > | |
| void | for_each (size_t begin, size_t end, const Loop &loop) |
| T | reduce (size_t begin, size_t end, const T &init, const Reduce &reduce, const Join &join) |
Public Attributes | |
| size_t | parallel_threshold |
| ThreadPool & | thread_pool |
#include <bvh/v2/executor.h>
|
inline |
Definition at line 46 of file executor.h.
Definition at line 51 of file executor.h.
|
inline |
Definition at line 64 of file executor.h.
| size_t bvh::v2::ParallelExecutor::parallel_threshold |
Definition at line 44 of file executor.h.
| ThreadPool& bvh::v2::ParallelExecutor::thread_pool |
Definition at line 43 of file executor.h.