From b257ab96bf8ba407ae322e61dd2c8be1c1dee193 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Sun, 4 Mar 2018 21:51:32 +0100 Subject: [PATCH] Locking on worker::reset() causes dead-lock --- srsue/src/phy/phch_worker.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/srsue/src/phy/phch_worker.cc b/srsue/src/phy/phch_worker.cc index f8b9e8148..3075b0b30 100644 --- a/srsue/src/phy/phch_worker.cc +++ b/srsue/src/phy/phch_worker.cc @@ -86,7 +86,6 @@ phch_worker::~phch_worker() void phch_worker::reset() { - pthread_mutex_lock(&mutex); bzero(&dl_metrics, sizeof(dl_metrics_t)); bzero(&ul_metrics, sizeof(ul_metrics_t)); bzero(&dmrs_cfg, sizeof(srslte_refsignal_dmrs_pusch_cfg_t)); @@ -102,7 +101,6 @@ void phch_worker::reset() I_sr = 0; cfi = 0; rssi_read_cnt = 0; - pthread_mutex_unlock(&mutex); } void phch_worker::set_common(phch_common* phy_)