aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/rx_timed_samples.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-06-16 19:18:06 -0700
committerJosh Blum <josh@joshknows.com>2010-06-16 19:18:06 -0700
commit339aa3ccd4a50de5e259078635ddbcd552fff22f (patch)
treea2b3da46de6de1d5a9684d82ae99e1e70a2c0986 /host/examples/rx_timed_samples.cpp
parent168ab7279cec925e3db3e943e35d0d2bd220d8b3 (diff)
downloaduhd-339aa3ccd4a50de5e259078635ddbcd552fff22f.tar.gz
uhd-339aa3ccd4a50de5e259078635ddbcd552fff22f.tar.bz2
uhd-339aa3ccd4a50de5e259078635ddbcd552fff22f.zip
uhd: working windows implementation of thread priority setting, added called to example apps
Diffstat (limited to 'host/examples/rx_timed_samples.cpp')
-rw-r--r--host/examples/rx_timed_samples.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/examples/rx_timed_samples.cpp b/host/examples/rx_timed_samples.cpp
index 64da260d5..6920b34d1 100644
--- a/host/examples/rx_timed_samples.cpp
+++ b/host/examples/rx_timed_samples.cpp
@@ -15,6 +15,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
+#include <uhd/utils/thread_priority.hpp>
#include <uhd/utils/safe_main.hpp>
#include <uhd/usrp/simple_usrp.hpp>
#include <boost/program_options.hpp>
@@ -25,6 +26,8 @@
namespace po = boost::program_options;
int UHD_SAFE_MAIN(int argc, char *argv[]){
+ uhd::set_thread_priority_safe();
+
//variables to be set by po
std::string args;
int seconds_in_future;