#include <ug_thread_pool.h>
Public Member Functions | |
ThreadPool (size_t const num_workers) | |
~ThreadPool () | |
template<class callable > | |
void | add (callable &job) |
Definition at line 14 of file ug_thread_pool.h.
ug::ThreadPool::ThreadPool | ( | size_t const | num_workers | ) |
Definition at line 5 of file ug_thread_pool.cc.
ug::ThreadPool::~ThreadPool | ( | ) |
Definition at line 21 of file ug_thread_pool.cc.
void ug::ThreadPool::add | ( | callable & | job | ) | [inline] |
Definition at line 27 of file ug_thread_pool.h.
Referenced by main(), and Moses::sapt::StatsCollector< Token >::process().