diff --git a/srslte/lib/cuhd/src/cuhd_imp.cpp b/srslte/lib/cuhd/src/cuhd_imp.cpp index 26af3f7d6..7c5f37b1e 100644 --- a/srslte/lib/cuhd/src/cuhd_imp.cpp +++ b/srslte/lib/cuhd/src/cuhd_imp.cpp @@ -25,6 +25,7 @@ * */ +#include #include #include #include @@ -160,6 +161,7 @@ float cuhd_get_rx_gain_offset(void *h) { int cuhd_open_(char *args, void **h, bool create_thread_gain, bool tx_gain_same_rx) { + uhd::set_thread_priority_safe(); cuhd_handler *handler = new cuhd_handler(); std::string _args = std::string(args); handler->usrp = uhd::usrp::multi_usrp::make(_args + ", master_clock_rate=30720000, recv_frame_size=7696,num_recv_frames=64,send_frame_size=7696,num_send_frames=64");