From f02e07c1406c4f7fcdb9fd9f555f28224a6924c8 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Fri, 30 Jul 2021 13:03:06 +0200 Subject: [PATCH] Fix enb worker concurrency --- srsenb/src/phy/txrx.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/srsenb/src/phy/txrx.cc b/srsenb/src/phy/txrx.cc index 3bd133192..2fa6b9291 100644 --- a/srsenb/src/phy/txrx.cc +++ b/srsenb/src/phy/txrx.cc @@ -191,7 +191,7 @@ void txrx::run_thread() nr_worker->set_context(context); - // NR worker needs to be launched first, phy_common::worker_end expects first the NR worker and the LTE worker. + // Start NR worker processing worker_com->semaphore.push(nr_worker); nr_workers->start_worker(nr_worker); } @@ -206,14 +206,11 @@ void txrx::run_thread() lte_worker->set_context(context); - // NR worker needs to be launched first, phy_common::worker_end expects first the NR worker and the LTE worker. + // Start LTE worker processing worker_com->semaphore.push(lte_worker); lte_workers->start_worker(lte_worker); } - // Trigger phy worker execution - lte_workers->start_worker(lte_worker); - // Advance stack in time stack->tti_clock(); }