aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-09-30 11:32:21 -0700
committerJosh Blum <josh@joshknows.com>2010-09-30 11:32:21 -0700
commite4fffed05dda57bb37d693a3a26ea6a903c925f7 (patch)
tree7340fa38d7efe78e1a9e9aa41bf40c1b5bfac079 /host
parent04c74a3c74907e55e339f1568a1d5b4cdf190daf (diff)
downloaduhd-e4fffed05dda57bb37d693a3a26ea6a903c925f7.tar.gz
uhd-e4fffed05dda57bb37d693a3a26ea6a903c925f7.tar.bz2
uhd-e4fffed05dda57bb37d693a3a26ea6a903c925f7.zip
usb: set rt thread priority for the libusb event loop
Diffstat (limited to 'host')
-rw-r--r--host/lib/transport/libusb1_base.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/lib/transport/libusb1_base.cpp b/host/lib/transport/libusb1_base.cpp
index 26e864459..49f524a32 100644
--- a/host/lib/transport/libusb1_base.cpp
+++ b/host/lib/transport/libusb1_base.cpp
@@ -16,6 +16,7 @@
//
#include "libusb1_base.hpp"
+#include <uhd/utils/thread_priority.hpp>
#include <uhd/utils/assert.hpp>
#include <uhd/types/dict.hpp>
#include <boost/weak_ptr.hpp>
@@ -23,6 +24,7 @@
#include <boost/thread.hpp>
#include <iostream>
+using namespace uhd;
using namespace uhd::transport;
/***********************************************************************
@@ -52,6 +54,7 @@ private:
bool _running;
void run_event_loop(void){
+ set_thread_priority_safe();
_running = true;
timeval tv;
while(_running){