|
World Builder
1.1.0-pre
A geodynamic initial conditions generator
|
Public Member Functions | |
| ThreadPool (size_t number_of_threads) | |
| template<typename Callable > | |
| void | parallel_for (size_t start, size_t end, Callable func) |
Private Attributes | |
| std::vector< std::thread > | pool |
A very simple threadpool class. The threadpool currently only supports a parallel for function, to easily parallelize the for function.
Todo: might need something more advanced and safe in the future.
|
inlineexplicit |
|
inline |