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