GrPPI  0.2
Generic and Reusable Parallel Pattern Interface
Functions
Native parallel farm pattern

Sequential implementation of the Farm pattern. More...

Collaboration diagram for Native parallel farm pattern:

Functions

template<typename Generator , typename Consumer >
void grppi::farm (parallel_execution_native &ex, Generator generate_op, Consumer consume_op)
 Invoke Farm pattern on a data stream with native parallel execution with a generator and a consumer. More...
 
template<typename Generator , typename Transformer , typename Consumer >
void grppi::farm (parallel_execution_native &ex, Generator generate_op, Transformer transform_op, Consumer consume_op)
 Invoke Farm pattern on a data stream with native parallel execution with a generator and a consumer. More...
 

Detailed Description

Sequential implementation of the Farm pattern.

Function Documentation

template<typename Generator , typename Consumer >
void grppi::farm ( parallel_execution_native ex,
Generator  generate_op,
Consumer  consume_op 
)

Invoke Farm pattern on a data stream with native parallel execution with a generator and a consumer.

Template Parameters
GeneratorCallable type for the generation operation.
ConsumerCallable type for the consume operation.
Parameters
exParallel native execution policy object.
generate_opGenerator operation.
consume_opConsumer operation.
template<typename Generator , typename Transformer , typename Consumer >
void grppi::farm ( parallel_execution_native ex,
Generator  generate_op,
Transformer  transform_op,
Consumer  consume_op 
)

Invoke Farm pattern on a data stream with native parallel execution with a generator and a consumer.

Template Parameters
GeneratorCallable type for the generation operation.
TranformerCallable type for the tranformation operation.
ConsumerCallable type for the consume operation.
Parameters
exParallel native execution policy object.
generate_opGenerator operation.
transform_opTransformer operation.
consume_opConsumer operation.