diff options
author | Josh Blum <josh@joshknows.com> | 2011-02-09 19:01:28 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-02-09 19:01:28 -0800 |
commit | fb7e8a09a58f4c08f70ba0e088710a0e011ea01d (patch) | |
tree | 6a08b4b8751ba09263de160de89099573b97f69c /host/lib/usrp/usrp2/usrp2_impl.hpp | |
parent | 55884d630ca675c9f006eb0705bc8670119c4737 (diff) | |
download | uhd-fb7e8a09a58f4c08f70ba0e088710a0e011ea01d.tar.gz uhd-fb7e8a09a58f4c08f70ba0e088710a0e011ea01d.tar.bz2 uhd-fb7e8a09a58f4c08f70ba0e088710a0e011ea01d.zip |
uhd: replaced std::vector<type> for buffer arguments in send/recv
Created new type ref_vector for representing a vector of pointers.
Can be created from std::vector or a pointer.
Removes the convenience constrcutors for send/recv, its not needed.
Removes malloc/free overhead when using send/recv with pointer.
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.hpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_impl.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.hpp b/host/lib/usrp/usrp2/usrp2_impl.hpp index ad95b2a4a..337f842d6 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.hpp +++ b/host/lib/usrp/usrp2/usrp2_impl.hpp @@ -200,12 +200,12 @@ public: //the io interface size_t send( - const std::vector<const void *> &, size_t, + const send_buffs_type &, size_t, const uhd::tx_metadata_t &, const uhd::io_type_t &, uhd::device::send_mode_t, double ); size_t recv( - const std::vector<void *> &, size_t, + const recv_buffs_type &, size_t, uhd::rx_metadata_t &, const uhd::io_type_t &, uhd::device::recv_mode_t, double ); |