Accepts output items and sends them to the main thread. More...
#include <tpie/pipelining/parallel/base.h>
Public Types | |
| typedef T | item_type |
Public Member Functions | |
| template<typename Input > | |
| after (state< Input, T > &state, size_t parId) | |
| void | set_consumer (node *cons) override |
| after (after &&other) | |
| void | push (const T &item) |
| Push to thread-local buffer; flush it when full. More... | |
| void | end () override |
| void | worker_initialize () override |
| Invoked by before::worker (in worker thread context). More... | |
| void | flush_buffer () override |
| Invoked by before::push_all when all input items have been pushed. More... | |
Protected Types | |
| typedef state_base::lock_t | lock_t |
Protected Attributes | |
| state_base & | st |
| size_t | parId |
| std::unique_ptr< parallel_output_buffer< T > > | m_buffer |
| array< parallel_output_buffer< T > * > & | m_outputBuffers |
| consumer< T > *const * | m_cons |
Accepts output items and sends them to the main thread.
|
inlineoverride |
Invoked by before::push_all when all input items have been pushed.
|
inline |
|
inlineoverride |