Fix worker NR compilation

master
Xavier Arteaga 4 years ago committed by Andre Puschmann
parent d5d3594f49
commit ebd87e63c0

@ -44,7 +44,7 @@ using namespace std;
#include "srslte/srslte.h" #include "srslte/srslte.h"
void init_plots(srsenb::sf_worker* worker); void init_plots(srsenb::lte::sf_worker* worker);
pthread_t plot_thread; pthread_t plot_thread;
sem_t plot_sem; sem_t plot_sem;
static int plot_worker_id = -1; static int plot_worker_id = -1;
@ -367,7 +367,7 @@ static cf_t tmp_pucch_plot[SRSLTE_PUCCH_MAX_BITS / 2];
void* plot_thread_run(void* arg) void* plot_thread_run(void* arg)
{ {
auto worker = (srsenb::sf_worker*)arg; auto worker = (srsenb::lte::sf_worker*)arg;
for (uint32_t cc_idx = 0; cc_idx < worker->get_nof_carriers(); cc_idx++) { for (uint32_t cc_idx = 0; cc_idx < worker->get_nof_carriers(); cc_idx++) {
plot_cc_s& p = plots[cc_idx]; plot_cc_s& p = plots[cc_idx];
@ -427,7 +427,7 @@ void* plot_thread_run(void* arg)
return nullptr; return nullptr;
} }
void init_plots(srsenb::sf_worker* worker) void init_plots(srsenb::lte::sf_worker* worker)
{ {
if (sem_init(&plot_sem, 0, 0)) { if (sem_init(&plot_sem, 0, 0)) {

@ -35,7 +35,7 @@
#include "srsgui/srsgui.h" #include "srsgui/srsgui.h"
#include <semaphore.h> #include <semaphore.h>
void init_plots(srsue::sf_worker* worker); void init_plots(srsue::lte::sf_worker* worker);
pthread_t plot_thread; pthread_t plot_thread;
sem_t plot_sem; sem_t plot_sem;
static int plot_worker_id = -1; static int plot_worker_id = -1;
@ -354,7 +354,7 @@ static float sync_buffer[SYNC_PLOT_LEN];
void* plot_thread_run(void* arg) void* plot_thread_run(void* arg)
{ {
auto worker = (srsue::sf_worker*)arg; auto worker = (srsue::lte::sf_worker*)arg;
uint32_t row_count = 0; uint32_t row_count = 0;
sdrgui_init(); sdrgui_init();
@ -432,7 +432,7 @@ void* plot_thread_run(void* arg)
return nullptr; return nullptr;
} }
void init_plots(srsue::sf_worker* worker) void init_plots(srsue::lte::sf_worker* worker)
{ {
if (sem_init(&plot_sem, 0, 0)) { if (sem_init(&plot_sem, 0, 0)) {
perror("sem_init"); perror("sem_init");

Loading…
Cancel
Save