diff options
author | Josh Blum <josh@joshknows.com> | 2010-07-03 16:50:45 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-07-05 13:49:00 -0700 |
commit | 11f2aa1ea0fd6c28a20c6d85f94e41a06b3a6770 (patch) | |
tree | 35f29c651cf400b03c5aba6939dcc03cc35e2ea7 /host/examples/benchmark_rx_rate.cpp | |
parent | 52ea9b8f90c56c12e978387aee670b45d93d74a5 (diff) | |
download | uhd-11f2aa1ea0fd6c28a20c6d85f94e41a06b3a6770.tar.gz uhd-11f2aa1ea0fd6c28a20c6d85f94e41a06b3a6770.tar.bz2 uhd-11f2aa1ea0fd6c28a20c6d85f94e41a06b3a6770.zip |
uhd: replaced old send and recv with inline wrappers that take a single buffer and look more like the vectored send/recv
Diffstat (limited to 'host/examples/benchmark_rx_rate.cpp')
-rw-r--r-- | host/examples/benchmark_rx_rate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/examples/benchmark_rx_rate.cpp b/host/examples/benchmark_rx_rate.cpp index e7e358e4c..6984d7eff 100644 --- a/host/examples/benchmark_rx_rate.cpp +++ b/host/examples/benchmark_rx_rate.cpp @@ -49,7 +49,7 @@ static inline void test_device( sdev->issue_stream_cmd(uhd::stream_cmd_t::STREAM_MODE_START_CONTINUOUS); do { size_t num_rx_samps = dev->recv( - boost::asio::buffer(buff), md, + &buff.front(), buff.size(), md, uhd::io_type_t::COMPLEX_FLOAT32, uhd::device::RECV_MODE_ONE_PACKET ); @@ -79,7 +79,7 @@ static inline void test_device( //flush the buffers while(dev->recv( - boost::asio::buffer(buff), md, + &buff.front(), buff.size(), md, uhd::io_type_t::COMPLEX_FLOAT32, uhd::device::RECV_MODE_ONE_PACKET )); |