Executor for parallel execution. Uses a simple thread pool. More...
#include <transwarp.h>
Public Member Functions | |
parallel (std::size_t n_threads) | |
parallel (const parallel &)=delete | |
parallel & | operator= (const parallel &)=delete |
parallel (parallel &&)=delete | |
parallel & | operator= (parallel &&)=delete |
std::string | get_name () const override |
Returns the name of the executor. | |
void | execute (const std::function< void()> &functor, const std::shared_ptr< transwarp::node > &) override |
Pushes the functor into the thread pool for asynchronous execution. | |
Executor for parallel execution. Uses a simple thread pool.