On Sat, Jun 29, 2013 at 01:10:31PM +0200, Stefano wrote: > >it looks like the block inherits from gr_tagged_stream_block which > >will will call a blocks work function with the exact number of > >samples for one PDU with a known size in general_work and will > >call consume for you afterwards.
For the record: No work() function should *ever* call consume, regardless of its type (currently, that would be either gr_sync_block, gr_sync_decimator, gr_sync_interpolator and gr_tagged_stream_block). Only call consume() or consume_each() from general_work(). There's one exception: gr_tagged_stream_blocks may fall back to gr_block behaviour. The cyclic prefixer you mention is such a case, because it is a modification of an existing block, and provides gr_block style behaviour for backward compatibility. See: http://gnuradio.org/doc/doxygen/page_tagged_stream_blocks.html MB -- Karlsruhe Institute of Technology (KIT) Communications Engineering Lab (CEL) Dipl.-Ing. Martin Braun Research Associate Kaiserstraße 12 Building 05.01 76131 Karlsruhe Phone: +49 721 608-43790 Fax: +49 721 608-46071 www.cel.kit.edu KIT -- University of the State of Baden-Württemberg and National Laboratory of the Helmholtz Association
pgp0H6V9vYehY.pgp
Description: PGP signature
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio