#include <thread_pool.hh>
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 () |
Definition at line 57 of file thread_pool.hh.
typedef HandlerT util::ThreadPool< HandlerT >::Handler |
Definition at line 59 of file thread_pool.hh.
typedef Handler::Request util::ThreadPool< HandlerT >::Request |
Definition at line 60 of file thread_pool.hh.
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.
util::ThreadPool< HandlerT >::~ThreadPool | ( | ) | [inline] |
Definition at line 68 of file thread_pool.hh.
PCQueue<Request>& util::ThreadPool< HandlerT >::In | ( | ) | [inline] |
Definition at line 82 of file thread_pool.hh.
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().