Bug in tbb pipeline example?

Bug in tbb pipeline example?

The implementation of MyInputFilter uses a size_t next_buffer to cycle through the MyTransformFilter objects. If the MyTransformFilter operators do not complete in the proper order, won't MyInputFilter's operator overwrite data in the wrong MyBuffer?..or is there some serialization that I'm missing??

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

I think I just answerd my own question. I think the serial output filter is what makes this example work.

If this filter is omitted, then the problem occurs.

Leave a Comment

Please sign in to add a comment. Not a member? Join today