Sequential implementation of the Farm pattern.
More...
|
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...
|
|
Sequential implementation of the Farm pattern.
template<typename Generator , typename Consumer >
Invoke Farm pattern on a data stream with native parallel execution with a generator and a consumer.
- Template Parameters
-
Generator | Callable type for the generation operation. |
Consumer | Callable type for the consume operation. |
- Parameters
-
ex | Parallel native execution policy object. |
generate_op | Generator operation. |
consume_op | Consumer operation. |
template<typename Generator , typename Transformer , typename Consumer >
Invoke Farm pattern on a data stream with native parallel execution with a generator and a consumer.
- Template Parameters
-
Generator | Callable type for the generation operation. |
Tranformer | Callable type for the tranformation operation. |
Consumer | Callable type for the consume operation. |
- Parameters
-
ex | Parallel native execution policy object. |
generate_op | Generator operation. |
transform_op | Transformer operation. |
consume_op | Consumer operation. |