From ebd87e63c08daf9bd54fe66b270c4e47145e21f9 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Wed, 2 Dec 2020 10:55:56 +0100 Subject: [PATCH] Fix worker NR compilation --- srsenb/src/phy/lte/sf_worker.cc | 6 +++--- srsue/src/phy/lte/sf_worker.cc | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/srsenb/src/phy/lte/sf_worker.cc b/srsenb/src/phy/lte/sf_worker.cc index 056f277b7..6a2e443e0 100644 --- a/srsenb/src/phy/lte/sf_worker.cc +++ b/srsenb/src/phy/lte/sf_worker.cc @@ -44,7 +44,7 @@ using namespace std; #include "srslte/srslte.h" -void init_plots(srsenb::sf_worker* worker); +void init_plots(srsenb::lte::sf_worker* worker); pthread_t plot_thread; sem_t plot_sem; 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) { - 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++) { plot_cc_s& p = plots[cc_idx]; @@ -427,7 +427,7 @@ void* plot_thread_run(void* arg) return nullptr; } -void init_plots(srsenb::sf_worker* worker) +void init_plots(srsenb::lte::sf_worker* worker) { if (sem_init(&plot_sem, 0, 0)) { diff --git a/srsue/src/phy/lte/sf_worker.cc b/srsue/src/phy/lte/sf_worker.cc index 4ac2bd2e2..53c08b923 100644 --- a/srsue/src/phy/lte/sf_worker.cc +++ b/srsue/src/phy/lte/sf_worker.cc @@ -35,7 +35,7 @@ #include "srsgui/srsgui.h" #include -void init_plots(srsue::sf_worker* worker); +void init_plots(srsue::lte::sf_worker* worker); pthread_t plot_thread; sem_t plot_sem; static int plot_worker_id = -1; @@ -354,7 +354,7 @@ static float sync_buffer[SYNC_PLOT_LEN]; void* plot_thread_run(void* arg) { - auto worker = (srsue::sf_worker*)arg; + auto worker = (srsue::lte::sf_worker*)arg; uint32_t row_count = 0; sdrgui_init(); @@ -432,7 +432,7 @@ void* plot_thread_run(void* arg) return nullptr; } -void init_plots(srsue::sf_worker* worker) +void init_plots(srsue::lte::sf_worker* worker) { if (sem_init(&plot_sem, 0, 0)) { perror("sem_init");