commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r9611 - gnuradio/trunk/usrp2/host/lib


From: eb
Subject: [Commit-gnuradio] r9611 - gnuradio/trunk/usrp2/host/lib
Date: Fri, 19 Sep 2008 18:50:25 -0600 (MDT)

Author: eb
Date: 2008-09-19 18:50:25 -0600 (Fri, 19 Sep 2008)
New Revision: 9611

Modified:
   gnuradio/trunk/usrp2/host/lib/usrp2_thread.cc
Log:
Ensure that usrp2 background thread runs at good pri.  Doesn't fix SSSS problem

Modified: gnuradio/trunk/usrp2/host/lib/usrp2_thread.cc
===================================================================
--- gnuradio/trunk/usrp2/host/lib/usrp2_thread.cc       2008-09-20 00:16:41 UTC 
(rev 9610)
+++ gnuradio/trunk/usrp2/host/lib/usrp2_thread.cc       2008-09-20 00:50:25 UTC 
(rev 9611)
@@ -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 @@
   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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]