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??

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

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.

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya