diff options
author | Josh Blum <josh@joshknows.com> | 2010-07-09 20:09:45 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-07-09 20:09:45 -0700 |
commit | c898ca9751d1b274ae8f8f7afc2d5bc54b6ef30c (patch) | |
tree | 68608f738c82c43ba0ace42089011f51723afdd8 /host/lib/transport/vrt_packet_handler.hpp | |
parent | 75537e896bbd0aeb8d988b6ad33b5ab2d35b316f (diff) | |
download | uhd-c898ca9751d1b274ae8f8f7afc2d5bc54b6ef30c.tar.gz uhd-c898ca9751d1b274ae8f8f7afc2d5bc54b6ef30c.tar.bz2 uhd-c898ca9751d1b274ae8f8f7afc2d5bc54b6ef30c.zip |
uhd: ssize_t for phony zero copy return types, null sptr for timeout/error with get managed buffers
Diffstat (limited to 'host/lib/transport/vrt_packet_handler.hpp')
-rw-r--r-- | host/lib/transport/vrt_packet_handler.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/host/lib/transport/vrt_packet_handler.hpp b/host/lib/transport/vrt_packet_handler.hpp index c0d6bbe12..221e2bfa6 100644 --- a/host/lib/transport/vrt_packet_handler.hpp +++ b/host/lib/transport/vrt_packet_handler.hpp @@ -329,7 +329,9 @@ namespace vrt_packet_handler{ ); //commit the samples to the zero-copy interface - send_buffs[i]->commit(if_packet_info.num_packet_words32*sizeof(boost::uint32_t)); + if (send_buffs[i]->commit(if_packet_info.num_packet_words32*sizeof(boost::uint32_t)) < num_samps){ + std::cerr << "commit to send buffer returned less than commit size" << std::endl; + } } } |