summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/runtime/gr_block.cc
diff options
context:
space:
mode:
authorTom Rondeau2010-11-02 19:57:24 -0400
committerTom Rondeau2010-11-02 19:57:24 -0400
commite70f8a0d50474784c1f1b64b94907feb9b913a2b (patch)
tree62141b4ab6ca9b540fe88ad86d73d3f4d10bc222 /gnuradio-core/src/lib/runtime/gr_block.cc
parent1c7119f52792da359fc5638a589b8cc8fa959864 (diff)
downloadgnuradio-e70f8a0d50474784c1f1b64b94907feb9b913a2b.tar.gz
gnuradio-e70f8a0d50474784c1f1b64b94907feb9b913a2b.tar.bz2
gnuradio-e70f8a0d50474784c1f1b64b94907feb9b913a2b.zip
Moved number items read/written from gr_block_detail into gr_buffer (abs_written_offset) and gr_buffer_reader (abs_read_offset). Keeps the API exposed in gr_blocks for now.
Diffstat (limited to 'gnuradio-core/src/lib/runtime/gr_block.cc')
-rw-r--r--gnuradio-core/src/lib/runtime/gr_block.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_block.cc b/gnuradio-core/src/lib/runtime/gr_block.cc
index e0a223135..c00a034de 100644
--- a/gnuradio-core/src/lib/runtime/gr_block.cc
+++ b/gnuradio-core/src/lib/runtime/gr_block.cc
@@ -121,7 +121,7 @@ gr_uint64
gr_block::n_items_read(unsigned int which_input)
{
if(d_detail) {
- return d_detail->n_items_read(which_input);
+ return d_detail->nitems_read(which_input);
}
else {
//throw std::runtime_error("No block_detail associated with block yet");
@@ -133,7 +133,7 @@ gr_uint64
gr_block::n_items_written(unsigned int which_output)
{
if(d_detail) {
- return d_detail->n_items_written(which_output);
+ return d_detail->nitems_written(which_output);
}
else {
//throw std::runtime_error("No block_detail associated with block yet");