I fail to understand how should I use TBB for my needs.
My code is (obviously) divided among several classes. Such a class has inputs, outputs, internal memory and (at least) one member function that processes the input using some of the internal memory.
Would like to create a pipeline using flow graph (to be able to generalize in the future) something like A->B.
Suppose A 's output is a pointer to float array of length N. B processes this array using an internal array of length N.
I create the classes, connect the nodes. I do not understand what happens when it runs. Are new instances of objects for A and B created, depending on the concurrency? If not - what should I do to enable parallel access to different segments of memory?