Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
bvh::v2::ParallelExecutor Struct Reference

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 >
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)
 
reduce (size_t begin, size_t end, const T &init, const Reduce &reduce, const Join &join)
 

Public Attributes

size_t parallel_threshold
 
ThreadPoolthread_pool
 

#include <bvh/v2/executor.h>

Inheritance diagram for bvh::v2::ParallelExecutor:
[legend]

Constructor & Destructor Documentation

◆ ParallelExecutor()

bvh::v2::ParallelExecutor::ParallelExecutor ( ThreadPool thread_pool,
size_t  parallel_threshold = 1024 
)
inline

Definition at line 46 of file executor.h.

Member Function Documentation

◆ for_each()

template<typename Loop >
void bvh::v2::ParallelExecutor::for_each ( size_t  begin,
size_t  end,
const Loop &  loop 
)
inline

Definition at line 51 of file executor.h.

◆ 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

Definition at line 64 of file executor.h.

Member Data Documentation

◆ parallel_threshold

size_t bvh::v2::ParallelExecutor::parallel_threshold

Definition at line 44 of file executor.h.

◆ thread_pool

ThreadPool& bvh::v2::ParallelExecutor::thread_pool

Definition at line 43 of file executor.h.

Collaboration diagram for bvh::v2::ParallelExecutor:
[legend]

The documentation for this struct was generated from the following file: