From 1c79742231c5cc3609e35bda34c8d9b9e7440f50 Mon Sep 17 00:00:00 2001 From: Ciro Nishiguchi Date: Tue, 6 Aug 2019 14:44:51 -0500 Subject: utils: remove thread priority elevation Remove UHD call to elevate thread priority to realtime from utils, and add warning in documentation of set_thread_priority function. Setting all threads to the same realtime priority can cause the threads to not share access to the network interface fairly, which adversely affects operation of the worker threads in UHD. --- host/utils/uhd_cal_tx_dc_offset.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'host/utils/uhd_cal_tx_dc_offset.cpp') diff --git a/host/utils/uhd_cal_tx_dc_offset.cpp b/host/utils/uhd_cal_tx_dc_offset.cpp index f47b5e913..4ae305696 100644 --- a/host/utils/uhd_cal_tx_dc_offset.cpp +++ b/host/utils/uhd_cal_tx_dc_offset.cpp @@ -31,8 +31,6 @@ static void tx_thread(uhd::usrp::multi_usrp::sptr usrp, const double tx_wave_freq, const double tx_wave_ampl) { - uhd::set_thread_priority_safe(); - // set max TX gain usrp->set_tx_gain(usrp->get_tx_gain_range().stop()); -- cgit v1.2.3