diff options
author | Josh Blum <josh@joshknows.com> | 2011-02-20 19:57:04 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-02-20 19:57:04 -0800 |
commit | 607f5df7013810e94bbe049e457858ec68f8dd0e (patch) | |
tree | 1b607ce8fae00dee527c22e18fb7b15fdb38b79b /host/lib/transport | |
parent | e558283f9ff2550d164d868c8e66a5561c781474 (diff) | |
download | uhd-607f5df7013810e94bbe049e457858ec68f8dd0e.tar.gz uhd-607f5df7013810e94bbe049e457858ec68f8dd0e.tar.bz2 uhd-607f5df7013810e94bbe049e457858ec68f8dd0e.zip |
usrp2: code working again in a completed form but did not test dual dsp
Diffstat (limited to 'host/lib/transport')
-rw-r--r-- | host/lib/transport/vrt_packet_handler.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/transport/vrt_packet_handler.hpp b/host/lib/transport/vrt_packet_handler.hpp index 6f3ac0421..4f8ce7e52 100644 --- a/host/lib/transport/vrt_packet_handler.hpp +++ b/host/lib/transport/vrt_packet_handler.hpp @@ -300,18 +300,18 @@ template <typename T> UHD_INLINE T get_context_code( typedef boost::function<bool(managed_send_buffs_t &)> get_send_buffs_t; typedef boost::function<void(boost::uint32_t *, uhd::transport::vrt::if_packet_info_t &)> vrt_packer_t; + static const boost::uint64_t zeros = 0; + struct send_state{ //init the expected seq number size_t next_packet_seq; managed_send_buffs_t managed_buffs; - const boost::uint64_t zeros; std::vector<const void *> zero_buffs; std::vector<const void *> io_buffs; send_state(size_t width = 1): next_packet_seq(0), managed_buffs(width), - zeros(0), zero_buffs(width, &zeros), io_buffs(0) //resized later { |