diff options
author | Josh Blum <josh@joshknows.com> | 2010-07-07 19:32:47 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-07-07 19:32:47 -0700 |
commit | be430761fb7e526e80b67d70e3cf488c6dd02495 (patch) | |
tree | 43c9bf8910a6b1f6370312e0c5470cbea65619b4 /host/lib/usrp | |
parent | 516b722fa17123b6ae95b551c71f0b052d129f78 (diff) | |
download | uhd-be430761fb7e526e80b67d70e3cf488c6dd02495.tar.gz uhd-be430761fb7e526e80b67d70e3cf488c6dd02495.tar.bz2 uhd-be430761fb7e526e80b67d70e3cf488c6dd02495.zip |
usrp2: use the actual pointer in bind so the sptr is not copied
Diffstat (limited to 'host/lib/usrp')
-rw-r--r-- | host/lib/usrp/usrp2/io_impl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp index c96528694..0853f48be 100644 --- a/host/lib/usrp/usrp2/io_impl.cpp +++ b/host/lib/usrp/usrp2/io_impl.cpp @@ -135,7 +135,7 @@ void usrp2_impl::io_init(void){ for (size_t i = 0; i < _data_transports.size(); i++){ _io_impl->recv_pirate_crew.create_thread(boost::bind( &usrp2_impl::io_impl::recv_pirate_loop, - _io_impl, _data_transports.at(i), + _io_impl.get(), _data_transports.at(i), _mboards.at(i), i )); } @@ -195,6 +195,6 @@ size_t usrp2_impl::recv( io_type, _io_helper.get_rx_otw_type(), //input and output types to convert _mboards.front()->get_master_clock_freq(), //master clock tick rate uhd::transport::vrt::if_hdr_unpack_be, - boost::bind(&usrp2_impl::io_impl::get_recv_buffs, _io_impl, _1) + boost::bind(&usrp2_impl::io_impl::get_recv_buffs, _io_impl.get(), _1) ); } |