util::ThreadPool< HandlerT > Class Template Reference

#include <thread_pool.hh>

Inheritance diagram for util::ThreadPool< HandlerT >:

Inheritance graph
[legend]
Collaboration diagram for util::ThreadPool< HandlerT >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef HandlerT Handler
typedef Handler::Request Request

Public Member Functions

template<class Construct >
 ThreadPool (size_t queue_length, size_t workers, Construct handler_construct, Request poison)
 ~ThreadPool ()
void Produce (const Request &request)
PCQueue< Request > & In ()


Detailed Description

template<class HandlerT>
class util::ThreadPool< HandlerT >

Definition at line 57 of file thread_pool.hh.


Member Typedef Documentation

template<class HandlerT>
typedef HandlerT util::ThreadPool< HandlerT >::Handler

Definition at line 59 of file thread_pool.hh.

template<class HandlerT>
typedef Handler::Request util::ThreadPool< HandlerT >::Request

Definition at line 60 of file thread_pool.hh.


Constructor & Destructor Documentation

template<class HandlerT>
template<class Construct >
util::ThreadPool< HandlerT >::ThreadPool ( size_t  queue_length,
size_t  workers,
Construct  handler_construct,
Request  poison 
) [inline]

Definition at line 62 of file thread_pool.hh.

template<class HandlerT>
util::ThreadPool< HandlerT >::~ThreadPool (  )  [inline]

Definition at line 68 of file thread_pool.hh.


Member Function Documentation

template<class HandlerT>
PCQueue<Request>& util::ThreadPool< HandlerT >::In (  )  [inline]

Definition at line 82 of file thread_pool.hh.

template<class HandlerT>
void util::ThreadPool< HandlerT >::Produce ( const Request request  )  [inline]

Definition at line 77 of file thread_pool.hh.

Referenced by util::ThreadPool< FilterWorker< Batch, Filter > >::~ThreadPool().

Here is the caller graph for this function:


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

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