diff options
author | Ashish Chaudhari <ashish@ettus.com> | 2016-02-18 17:40:47 -0800 |
---|---|---|
committer | Ashish Chaudhari <ashish@ettus.com> | 2016-02-18 17:40:47 -0800 |
commit | 1c2f56bbc1ccd0bffaac8fa4da174d1ad130a3ba (patch) | |
tree | a6c4fb7f587a6949485717d13cea3e4fa53e3496 /host/examples | |
parent | 2d68f228888807d0fd76c7b759ec39fd86523f67 (diff) | |
parent | ed4223d74cab604213b925da2eccb6055aa7aea2 (diff) | |
download | uhd-1c2f56bbc1ccd0bffaac8fa4da174d1ad130a3ba.tar.gz uhd-1c2f56bbc1ccd0bffaac8fa4da174d1ad130a3ba.tar.bz2 uhd-1c2f56bbc1ccd0bffaac8fa4da174d1ad130a3ba.zip |
Merge branch 'maint'
Conflicts:
host/lib/usrp/cores/gpio_core_200.cpp
host/lib/usrp/dboard/db_ubx.cpp
Diffstat (limited to 'host/examples')
-rw-r--r-- | host/examples/benchmark_rate.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/host/examples/benchmark_rate.cpp b/host/examples/benchmark_rate.cpp index cc3ef04a4..f8c0342c0 100644 --- a/host/examples/benchmark_rate.cpp +++ b/host/examples/benchmark_rate.cpp @@ -80,6 +80,12 @@ void benchmark_rx_rate( try { num_rx_samps += rx_stream->recv(buffs, max_samps_per_packet, md)*rx_stream->get_num_channels(); } + catch (uhd::io_error &e) { + std::cerr << "Caught an IO exception. " << std::endl; + std::cerr << e.what() << std::endl; + + return; + } catch (...) { /* apparently, the boost thread interruption can sometimes result in throwing exceptions not of type boost::exception, this catch allows |