This simple answer is no, there is no way to "clear" a buffer other than for all consumers of that buffer (all blocks connected to the output of the block whose output buffer you care about) to consume all of the contents. There may still be a way to solve your problem, depending on what it is.
On Sat, Oct 23, 2021 at 12:53 PM sp h <[email protected]> wrote: > Hi, dears I read the below link that describes how Gnuradio blocks work > together... > > https://www.gnuradio.org/blog/2017-01-05-buffers/ > > I had a question: Is there any way to clear the buffers of the Gnuradio > blocks in C++ or Python... > I want in a time UHD buffer is cleared and send new data? > In Gnuradio and block is it possible ? any solution or any idea.......... > > thanks in advance > > I saw these links but not solve my problem. > > https://lists.gnu.org/archive/html/discuss-gnuradio/2017-07/msg00006.html > https://www.ruby-forum.com/t/clearing-gnuradio-buffers/60074 > >
