util::Worker< HandlerT > Class Template Reference

#include <thread_pool.hh>

Collaboration diagram for util::Worker< HandlerT >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef HandlerT Handler
typedef Handler::Request Request

Public Member Functions

template<class Construct >
 Worker (PCQueue< Request > &in, Construct &construct, const Request &poison)
void operator() ()
void Join ()


Detailed Description

template<class HandlerT>
class util::Worker< HandlerT >

Definition at line 15 of file thread_pool.hh.


Member Typedef Documentation

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

Definition at line 17 of file thread_pool.hh.

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

Definition at line 18 of file thread_pool.hh.


Constructor & Destructor Documentation

template<class HandlerT >
template<class Construct >
util::Worker< HandlerT >::Worker ( PCQueue< Request > &  in,
Construct &  construct,
const Request poison 
) [inline]

Definition at line 20 of file thread_pool.hh.


Member Function Documentation

template<class HandlerT >
void util::Worker< HandlerT >::Join (  )  [inline]

Definition at line 43 of file thread_pool.hh.

template<class HandlerT >
void util::Worker< HandlerT >::operator() (  )  [inline]

Definition at line 24 of file thread_pool.hh.

References util::PCQueue< T >::Consume().

Here is the call 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