A simple thread pool used to execute tasks in parallel. More...
#include <transwarp.h>
Public Member Functions | |
thread_pool (std::size_t n_threads) | |
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.