ug::ThreadPool Class Reference

#include <ug_thread_pool.h>

List of all members.

Public Member Functions

 ThreadPool (size_t const num_workers)
 ~ThreadPool ()
template<class callable >
void add (callable &job)


Detailed Description

Definition at line 14 of file ug_thread_pool.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

template<class callable >
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().

Here is the caller graph for this function:


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

Generated on Thu Jul 6 00:34:47 2017 for Moses by  doxygen 1.5.9