summaryrefslogtreecommitdiff
path: root/usrp2/host
diff options
context:
space:
mode:
authoreb2008-09-20 00:50:25 +0000
committereb2008-09-20 00:50:25 +0000
commit721a6b398ab3306d806f2a49741f005dcbee178f (patch)
treeb292c51990552cbfcc61d58a257ee5abb8198ad2 /usrp2/host
parent8c2e26d9f7ef82fe5ae54a8e2b7744dedd746c2b (diff)
downloadgnuradio-721a6b398ab3306d806f2a49741f005dcbee178f.tar.gz
gnuradio-721a6b398ab3306d806f2a49741f005dcbee178f.tar.bz2
gnuradio-721a6b398ab3306d806f2a49741f005dcbee178f.zip
Ensure that usrp2 background thread runs at good pri. Doesn't fix SSSS problem
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9611 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp2/host')
-rw-r--r--usrp2/host/lib/usrp2_thread.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/usrp2/host/lib/usrp2_thread.cc b/usrp2/host/lib/usrp2_thread.cc
index 9e4e6dbef..d14770395 100644
--- a/usrp2/host/lib/usrp2_thread.cc
+++ b/usrp2/host/lib/usrp2_thread.cc
@@ -23,6 +23,7 @@
#include "usrp2_thread.h"
#include "usrp2_impl.h"
#include <gruel/realtime.h>
+#include <gruel/sys_pri.h>
#include <iostream>
#define USRP2_THREAD_DEBUG 1
@@ -50,7 +51,7 @@ namespace usrp2 {
void *
usrp2_thread::run_undetached(void *arg)
{
- if (gruel::enable_realtime_scheduling() != gruel::RT_OK)
+ if (gruel::enable_realtime_scheduling(gruel::sys_pri::usrp2_backend()) != gruel::RT_OK)
std::cerr << "usrp2: failed to enable realtime scheduling" << std::endl;
// This is the first code to run in the new thread context.