diff options
author | Josh Blum <josh@joshknows.com> | 2011-07-14 22:41:56 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-07-14 22:41:56 -0700 |
commit | 3fea33db9a5d951b9db7c7653eaae0e6291de0bc (patch) | |
tree | 48b5401ec94b9508c00191942f9fa4387c985b9c /host/examples/benchmark_rate.cpp | |
parent | 5239879e9f97bdbb6e3c531cee85824823ebff89 (diff) | |
download | uhd-3fea33db9a5d951b9db7c7653eaae0e6291de0bc.tar.gz uhd-3fea33db9a5d951b9db7c7653eaae0e6291de0bc.tar.bz2 uhd-3fea33db9a5d951b9db7c7653eaae0e6291de0bc.zip |
uhd: pulled misc changes from other branches into master
Diffstat (limited to 'host/examples/benchmark_rate.cpp')
-rw-r--r-- | host/examples/benchmark_rate.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/host/examples/benchmark_rate.cpp b/host/examples/benchmark_rate.cpp index 688cd797a..774b240d4 100644 --- a/host/examples/benchmark_rate.cpp +++ b/host/examples/benchmark_rate.cpp @@ -157,6 +157,7 @@ void benchmark_tx_rate_async_helper(uhd::usrp::multi_usrp::sptr usrp){ * Main code + dispatcher **********************************************************************/ int UHD_SAFE_MAIN(int argc, char *argv[]){ + uhd::set_thread_priority_safe(); //variables to be set by po std::string args; @@ -177,7 +178,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ po::notify(vm); //print the help message - if (vm.count("help")){ + if (vm.count("help") or (vm.count("rx_rate") + vm.count("tx_rate")) == 0){ std::cout << boost::format("UHD Benchmark Rate %s") % desc << std::endl; std::cout << " Specify --rx_rate for a receive-only test.\n" |