transwarp
|
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_pool & | operator= (const thread_pool &)=delete |
thread_pool (thread_pool &&)=delete | |
thread_pool & | operator= (thread_pool &&)=delete |
void | push (const std::function< void()> &functor) |
A simple thread pool used to execute tasks in parallel.