Lock sync_var access in restart_L1L2()

This commit is contained in:
Robert Schmidt
2018-09-05 14:21:39 +02:00
parent c1b024d354
commit 5a1e8c2869
+2
View File
@@ -801,7 +801,9 @@ int restart_L1L2(module_id_t enb_id)
LOG_W(ENB_APP, "restarting lte-softmodem\n");
/* block threads */
pthread_mutex_lock(&sync_mutex);
sync_var = -1;
pthread_mutex_unlock(&sync_mutex);
for (cc_id = 0; cc_id < RC.nb_L1_CC[enb_id]; cc_id++) {
RC.eNB[enb_id][cc_id]->configured = 0;