diff --git a/openair1/PHY/LTE_TRANSPORT/dlsch_coding.c b/openair1/PHY/LTE_TRANSPORT/dlsch_coding.c index 05ba6fc4747467ff68f1cb53bb854666c62b4368..8afb1e6f1cf49d77231e424a65747134b8e3d826 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) {