summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-06-16 18:40:44 -0700
committerJosh Blum <josh@joshknows.com>2010-06-16 18:40:44 -0700
commit168ab7279cec925e3db3e943e35d0d2bd220d8b3 (patch)
tree6b86a586c332d2610ff2ae59ddda2a09c6ea7877 /host/lib/usrp/usrp2
parenta89d684ba2b81c6e18d348965dffb919edb56fea (diff)
downloaduhd-168ab7279cec925e3db3e943e35d0d2bd220d8b3.tar.gz
uhd-168ab7279cec925e3db3e943e35d0d2bd220d8b3.tar.bz2
uhd-168ab7279cec925e3db3e943e35d0d2bd220d8b3.zip
uhd: work on thread priority scheduling
Diffstat (limited to 'host/lib/usrp/usrp2')
-rw-r--r--host/lib/usrp/usrp2/io_impl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp
index 6cb2a735b..aa0f63321 100644
--- a/host/lib/usrp/usrp2/io_impl.cpp
+++ b/host/lib/usrp/usrp2/io_impl.cpp
@@ -18,6 +18,7 @@
#include "../../transport/vrt_packet_handler.hpp"
#include "usrp2_impl.hpp"
#include "usrp2_regs.hpp"
+#include <uhd/utils/thread_priority.hpp>
#include <uhd/transport/convert_types.hpp>
#include <uhd/transport/bounded_buffer.hpp>
#include <boost/format.hpp>
@@ -78,6 +79,7 @@ managed_recv_buffer::sptr usrp2_impl::io_impl::get_recv_buff(void){
}
void usrp2_impl::io_impl::recv_pirate_loop(zero_copy_if::sptr zc_if){
+ set_thread_priority_safe();
recv_pirate_running = true;
while(recv_pirate_running){
managed_recv_buffer::sptr buff = zc_if->get_recv_buff();