summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-02-03 22:14:55 +0000
committerJosh Blum <josh@joshknows.com>2011-02-03 22:14:55 +0000
commit3993c827f6f7e79617d301dd6df44dfffb068e60 (patch)
tree48b5bb31c013c3e69c3e487c10ec6fe67fdb29b0 /host/lib/usrp/usrp2
parent8ffd7e04c4cf5089b3adbe211ce2c80f4e76ebd7 (diff)
downloaduhd-3993c827f6f7e79617d301dd6df44dfffb068e60.tar.gz
uhd-3993c827f6f7e79617d301dd6df44dfffb068e60.tar.bz2
uhd-3993c827f6f7e79617d301dd6df44dfffb068e60.zip
usrp-e100: use pre-bound get send/recv buffers in io impl
Diffstat (limited to 'host/lib/usrp/usrp2')
-rw-r--r--host/lib/usrp/usrp2/io_impl.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp
index 67b52db71..b20b6652e 100644
--- a/host/lib/usrp/usrp2/io_impl.cpp
+++ b/host/lib/usrp/usrp2/io_impl.cpp
@@ -121,13 +121,12 @@ struct usrp2_impl::io_impl{
io_impl(size_t send_frame_size, const std::vector<zero_copy_if::sptr> &xports):
xports(xports),
+ get_recv_buffs_fcn(boost::bind(&usrp2_impl::io_impl::get_recv_buffs, this, _1)),
+ get_send_buffs_fcn(boost::bind(&usrp2_impl::io_impl::get_send_buffs, this, _1)),
packet_handler_recv_state(xports.size()),
packet_handler_send_state(xports.size()),
async_msg_fifo(100/*messages deep*/)
{
- get_recv_buffs_fcn = boost::bind(&usrp2_impl::io_impl::get_recv_buffs, this, _1);
- get_send_buffs_fcn = boost::bind(&usrp2_impl::io_impl::get_send_buffs, this, _1);
-
for (size_t i = 0; i < xports.size(); i++){
fc_mons.push_back(flow_control_monitor::sptr(
new flow_control_monitor(usrp2_impl::sram_bytes/send_frame_size)