Public Member Functions | |
TaskThreadPool (std::size_t pool_size, int numa_node_id=-1) | |
template<typename Task > | |
void | runTask (Task task) |
Add task to the thread pool if a thread is currently available. | |
void | run (const std::function< void()> &func) |
template<typename Task > | |
void | runTaskWithID (Task task) |
void | waitWorkComplete () |
Wait for queue to be empty. | |
Definition at line 15 of file thread_pool.h.