diff options
author | Steven Koo <steven.koo@ni.com> | 2021-01-07 13:11:02 -0600 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-01-21 12:47:17 -0600 |
commit | a2f10eed677861dfdb4a158c456a5e39302fe96e (patch) | |
tree | c1b1623c2247af48a9ca9fe9675c8736dd6e1d1e /host/lib/include/uhdlib/transport/rx_streamer_impl.hpp | |
parent | 92cb632ce1e443b1b3cffdc314cab57943b39f8c (diff) | |
download | uhd-a2f10eed677861dfdb4a158c456a5e39302fe96e.tar.gz uhd-a2f10eed677861dfdb4a158c456a5e39302fe96e.tar.bz2 uhd-a2f10eed677861dfdb4a158c456a5e39302fe96e.zip |
uhd: Check for overflow after timeout buff read
Error processing has been moved to another thread, so it's possible
that consecutive recv calls may miss the signalling that
an overflow occurred. We have no guarantee that the flag had been
set by the time the second recv call to find the errors occurs.
This adds another check for an overflow after calling
_get_aligned_buffs with a min 1ms timeout. Hopefully this is long
enough for the error to propogate, but it's not guaranteed.
Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to 'host/lib/include/uhdlib/transport/rx_streamer_impl.hpp')
-rw-r--r-- | host/lib/include/uhdlib/transport/rx_streamer_impl.hpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/host/lib/include/uhdlib/transport/rx_streamer_impl.hpp b/host/lib/include/uhdlib/transport/rx_streamer_impl.hpp index f664eb68f..ce66d2ccb 100644 --- a/host/lib/include/uhdlib/transport/rx_streamer_impl.hpp +++ b/host/lib/include/uhdlib/transport/rx_streamer_impl.hpp @@ -136,11 +136,6 @@ public: return 0; } - if (nsamps_per_buff == 0) { - metadata.reset(); - return 0; - } - const int32_t timeout_ms = static_cast<int32_t>(timeout * 1000); detail::eov_data_wrapper eov_positions(metadata); |