mirror of https://github.com/PentHertz/srsLTE.git
Added priority to UHD threads
This commit is contained in:
parent
ca2fddc511
commit
39f4484ede
|
@ -25,6 +25,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <uhd/utils/thread_priority.hpp>
|
||||
#include <uhd/usrp/multi_usrp.hpp>
|
||||
#include <iostream>
|
||||
#include <complex>
|
||||
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue