Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

async_node with multiple outputs?

Florian_J_
Beginner
314 Views

The tbb::flow::async_node documentation describes an async activity that writes to a single output port via the gateway interface. Is it possible to write to multiple output ports asynchronously like you can do with a tbb::flow::multifunction_node?

0 Kudos
2 Replies
Nikita_P_Intel
Employee
314 Views

Hi Florian,

Thanks for your question!

Currently, we do not support such functionality in async_node and we will consider it's implementation. However, you can emulate this by connecting multifunction_node as an output for async_node and switch ports by data inside multifunction_node.

- Nikita

0 Kudos
Florian_J_
Beginner
314 Views

Thank you very much. The solution is a bit clunky, but it works fine.

0 Kudos
Reply