Added priority to UHD threads

This commit is contained in:
ismagom 2015-07-02 18:51:08 +02:00
parent ca2fddc511
commit 39f4484ede
1 changed files with 2 additions and 0 deletions

View File

@ -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");