GNU Radio 3.7.1 C++ API
buffer.h File Reference
#include <gnuradio/api.h>
#include <gnuradio/runtime_types.h>
#include <gnuradio/tags.h>
#include <boost/weak_ptr.hpp>
#include <gnuradio/thread/thread.h>
#include <deque>
Include dependency graph for buffer.h:

Go to the source code of this file.

Classes

class  gr::buffer
 Single writer, multiple reader fifo. More...
class  gr::buffer_reader
 How we keep track of the readers of a gr::buffer. More...

Namespaces

namespace  gr
 

Include this header to use the message passing features.


Functions

GR_RUNTIME_API buffer_sptr gr::make_buffer (int nitems, size_t sizeof_item, block_sptr link=block_sptr())
 Allocate a buffer that holds at least nitems of size sizeof_item.
GR_RUNTIME_API buffer_reader_sptr gr::buffer_add_reader (buffer_sptr buf, int nzero_preload, block_sptr link=block_sptr())
 Create a new gr::buffer_reader and attach it to buffer buf.
GR_RUNTIME_API long gr::buffer_ncurrently_allocated ()
 returns # of buffers currently allocated
GR_RUNTIME_API long gr::buffer_reader_ncurrently_allocated ()
 returns # of buffer_readers currently allocated