transwarp
Public Member Functions | List of all members
transwarp::detail::thread_pool Class Reference

A simple thread pool used to execute tasks in parallel. More...

#include <transwarp.h>

Public Member Functions

 thread_pool (const std::size_t n_threads, std::function< void(std::size_t thread_index)> on_thread_started=nullptr)
 
 thread_pool (const thread_pool &)=delete
 
thread_pooloperator= (const thread_pool &)=delete
 
 thread_pool (thread_pool &&)=delete
 
thread_pooloperator= (thread_pool &&)=delete
 
void push (const std::function< void()> &functor)
 

Detailed Description

A simple thread pool used to execute tasks in parallel.


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