bugfix: kill td/te threads only if initialized
* init_td_thread()/init_te_thread() are only initialized depending on condition get_nprocs() > 2 && codingw * apply the same the same for the functions kill_td_thread()/kill_te_thread()
This commit is contained in:
@@ -1031,8 +1031,10 @@ void kill_eNB_proc(int inst) {
|
|||||||
proc = &eNB->proc;
|
proc = &eNB->proc;
|
||||||
proc_rxtx = &proc->proc_rxtx[0];
|
proc_rxtx = &proc->proc_rxtx[0];
|
||||||
|
|
||||||
kill_td_thread(eNB);
|
if(get_nprocs() > 2 && codingw) {
|
||||||
kill_te_thread(eNB);
|
kill_td_thread(eNB);
|
||||||
|
kill_te_thread(eNB);
|
||||||
|
}
|
||||||
LOG_I(PHY, "Killing TX CC_id %d inst %d\n", CC_id, inst );
|
LOG_I(PHY, "Killing TX CC_id %d inst %d\n", CC_id, inst );
|
||||||
for (i=0; i<2; i++) {
|
for (i=0; i<2; i++) {
|
||||||
pthread_mutex_lock(&proc_rxtx[i].mutex_rxtx);
|
pthread_mutex_lock(&proc_rxtx[i].mutex_rxtx);
|
||||||
|
|||||||
Reference in New Issue
Block a user