transwarp
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
transwarp::parallel Class Reference

Executor for parallel execution. Uses a simple thread pool. More...

#include <transwarp.h>

Inheritance diagram for transwarp::parallel:
transwarp::executor

Public Member Functions

 parallel (std::size_t n_threads)
 
 parallel (const parallel &)=delete
 
paralleloperator= (const parallel &)=delete
 
 parallel (parallel &&)=delete
 
paralleloperator= (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.
 

Detailed Description

Executor for parallel execution. Uses a simple thread pool.


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