OpenMP implementation of the Farm pattern.
More...
|
template<typename Generator , typename Consumer > |
void | grppi::farm (parallel_execution_omp &ex, Generator generate_op, Consumer consume_op) |
| Invoke the Farm pattern on a data stream with OpenMP parallel execution with a generator and a consumer. More...
|
|
template<typename Generator , typename Transformer , typename Consumer > |
void | grppi::farm (parallel_execution_omp &ex, Generator generate_op, Transformer transform_op, Consumer consume_op) |
| Invoke the Farm pattern on a data stream with OpenMP parallel execution with a generator, a transformer, and a consumer. More...
|
|
OpenMP implementation of the Farm pattern.
template<typename Generator , typename Consumer >
Invoke the Farm pattern on a data stream with OpenMP 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 | OpenMP arallel execution policy object. |
generate_op | Generator operation. |
consume_op | Consumer operation. |
template<typename Generator , typename Transformer , typename Consumer >
void grppi::farm |
( |
parallel_execution_omp & |
ex, |
|
|
Generator |
generate_op, |
|
|
Transformer |
transform_op, |
|
|
Consumer |
consume_op |
|
) |
| |
Invoke the Farm pattern on a data stream with OpenMP parallel execution with a generator, a transformer, 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 | OpenMP Parallel execution policy object. |
generate_op | Generator operation. |
transform_op | Transformer operation. |
consume_op | Consumer operation. |