diff options
Diffstat (limited to 'gnuradio-runtime/include/gnuradio/buffer_reader.h')
-rw-r--r-- | gnuradio-runtime/include/gnuradio/buffer_reader.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gnuradio-runtime/include/gnuradio/buffer_reader.h b/gnuradio-runtime/include/gnuradio/buffer_reader.h index a7e51d02e9..4885d9b4c1 100644 --- a/gnuradio-runtime/include/gnuradio/buffer_reader.h +++ b/gnuradio-runtime/include/gnuradio/buffer_reader.h @@ -51,7 +51,6 @@ class GR_RUNTIME_API buffer_reader { public: #ifdef BUFFER_DEBUG - // BUFFER DEBUG gr::logger_ptr d_logger; gr::logger_ptr d_debug_logger; #endif @@ -77,7 +76,7 @@ public: /*! * \brief Return number of items available for reading. */ - virtual int items_available(); // const + virtual int items_available() const; /*! * \brief Return buffer this reader reads from. @@ -121,7 +120,7 @@ public: * \brief Return the block that reads via this reader. * */ - block_sptr link() { return block_sptr(d_link); } + block_sptr link() const { return block_sptr(d_link); } /*! * \brief Given a [start,end), returns a vector all tags in the range. @@ -144,14 +143,16 @@ public: /*! * \brief Returns true when the current thread is ready to call the callback, - * false otherwise. Note if input_blocked_callback is overridden then this - * function should also be overridden. + * false otherwise. Delegate calls to buffer class's input_blkd_cb_ready(). + * Note if input_blocked_callback is overridden then this function should + * also be overridden. */ virtual bool input_blkd_cb_ready(int items_required) const { return false; } /*! * \brief Callback function that the scheduler will call when it determines - * that the input is blocked. Override this function if needed. + * that the input is blocked. Delegate calls to buffer class's + * input_blocked_callback(). Override this function if needed. */ virtual bool input_blocked_callback(int items_required, int items_avail) { |