transwarp
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:
Inheritance graph
[legend]
Collaboration diagram for transwarp::parallel:
Collaboration graph
[legend]

Public Member Functions

 parallel (const std::size_t n_threads, std::function< void(std::size_t thread_index)> on_thread_started=nullptr)
 
 parallel (const parallel &)=delete
 
paralleloperator= (const parallel &)=delete
 
 parallel (parallel &&)=delete
 
paralleloperator= (parallel &&)=delete
 
std::string name () const override
 Returns the name of the executor.
 
void execute (const std::function< void()> &functor, transwarp::itask &) 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: