Switch Processing Pipeline to TBB
Use TBB Flow Graph. Here more or less how the concepts maps between the two libraries:
Concurrency | Flow Graph |
---|---|
Process | Node |
Channel | Graph |
- | Message |
Notes:
- a functional Node makes a copy of the Body (the implementation), so the body must be CopyConstructible.
- message may be copied into the internal buffers through the flow graph, it is better to pass around pointers to large objects instead of the objects themselves