Commit 730ffc76 authored by Robert Schmidt's avatar Robert Schmidt

stop_L1L2(): no sleep, better oai_exit handling

parent eb2dfa1b
...@@ -1504,6 +1504,7 @@ int stop_L1L2(int enb_id) ...@@ -1504,6 +1504,7 @@ int stop_L1L2(int enb_id)
int CC_id; int CC_id;
LOG_W(ENB_APP, "stopping lte-softmodem\n"); LOG_W(ENB_APP, "stopping lte-softmodem\n");
oai_exit = 1;
/* stop trx devices */ /* stop trx devices */
for(CC_id=0; CC_id<MAX_NUM_CCs; CC_id++) { for(CC_id=0; CC_id<MAX_NUM_CCs; CC_id++) {
...@@ -1520,11 +1521,9 @@ int stop_L1L2(int enb_id) ...@@ -1520,11 +1521,9 @@ int stop_L1L2(int enb_id)
/* these tasks need to pick up new configuration */ /* these tasks need to pick up new configuration */
terminate_task(TASK_RRC_ENB, enb_id); terminate_task(TASK_RRC_ENB, enb_id);
terminate_task(TASK_L2L1, enb_id); terminate_task(TASK_L2L1, enb_id);
oai_exit = 1;
LOG_W(ENB_APP, "calling kill_eNB_proc() for instance %d\n", enb_id); LOG_W(ENB_APP, "calling kill_eNB_proc() for instance %d\n", enb_id);
kill_eNB_proc(enb_id); kill_eNB_proc(enb_id);
/* give some time for all threads */ oai_exit = 0;
sleep(1);
return 0; return 0;
} }
...@@ -1546,7 +1545,6 @@ int restart_L1L2(int enb_id) ...@@ -1546,7 +1545,6 @@ int restart_L1L2(int enb_id)
/* block threads */ /* block threads */
sync_var = -1; sync_var = -1;
oai_exit = 0;
reconfigure_enb_params(enb_id); /* set frame parameters from configuration */ reconfigure_enb_params(enb_id); /* set frame parameters from configuration */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment