From 8d15dfe89441abd606fba2984b7edeadd4495820 Mon Sep 17 00:00:00 2001 From: Raymond Knopp <raymond.knopp@eurecom.fr> Date: Tue, 20 Sep 2016 07:57:27 -0700 Subject: [PATCH] small bugs for lte-softmodem with parallel threads in L1 --- openair1/PHY/LTE_TRANSPORT/dlsch_coding.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openair1/PHY/LTE_TRANSPORT/dlsch_coding.c b/openair1/PHY/LTE_TRANSPORT/dlsch_coding.c index 05ba6fc474..8afb1e6f1c 100644 --- a/openair1/PHY/LTE_TRANSPORT/dlsch_coding.c +++ b/openair1/PHY/LTE_TRANSPORT/dlsch_coding.c @@ -344,10 +344,12 @@ void *te_thread(void *param) { eNB_proc_t *proc = &((te_params *)param)->eNB->proc; while (!oai_exit) { + if (wait_on_condition(&proc->mutex_te,&proc->cond_te,&proc->instance_cnt_te,"te thread")<0) break; dlsch_encoding_2threads0((te_params*)param); + if (release_thread(&proc->mutex_te,&proc->instance_cnt_te,"te thread")<0) break; if (pthread_cond_signal(&proc->cond_te) != 0) { -- GitLab