20 #ifndef __TPIE_PIPELINING_PARALLEL_PIPES_H__
21 #define __TPIE_PIPELINING_PARALLEL_PIPES_H__
24 #include <tpie/pipelining/pipe_base.h>
25 #include <tpie/pipelining/parallel/factory.h>
38 template <
typename fact_t>
39 pipe_middle<parallel_bits::factory<fact_t> >
42 switch (maintainOrder) {
44 opts.maintainOrder =
false;
47 opts.maintainOrder =
true;
50 opts.numJobs = numJobs;
51 opts.bufSize = bufSize;
54 (std::move(fact.factory), std::move(opts)));
63 template <
typename fact_t>
64 pipe_middle<parallel_bits::factory<fact_t> >
69 template <
typename fact_t>
70 pipe_middle<parallel_bits::factory<fact_t> >
71 parallel(pipe_middle<fact_t> && fact,
bool maintainOrder,
size_t numJobs,
size_t bufSize = 2048) {
72 log_fatal() <<
"The second argument to tpie::pipelining::parallel has changed.\n"
73 <<
"Use maintain_order instead of true and arbitrary_order instead of false."
78 template <
typename fact_t>
79 pipe_middle<parallel_bits::factory<fact_t> >
80 parallel(pipe_middle<fact_t> && fact,
bool maintainOrder) {
81 log_fatal() <<
"The second argument to tpie::pipelining::parallel has changed.\n"
82 <<
"Use maintain_order instead of true and arbitrary_order instead of false."
89 #endif // __TPIE_PIPELINING_PARALLEL_PIPES_H__