L1_rx_thread(): leave if thread-pool returns NULL
This commit is contained in:
@@ -154,6 +154,8 @@ void *L1_rx_thread(void *arg)
|
|||||||
|
|
||||||
while (oai_exit == 0) {
|
while (oai_exit == 0) {
|
||||||
notifiedFIFO_elt_t *res = pullNotifiedFIFO(&gNB->resp_L1);
|
notifiedFIFO_elt_t *res = pullNotifiedFIFO(&gNB->resp_L1);
|
||||||
|
if (res == NULL)
|
||||||
|
break;
|
||||||
processingData_L1_t *info = (processingData_L1_t *)NotifiedFifoData(res);
|
processingData_L1_t *info = (processingData_L1_t *)NotifiedFifoData(res);
|
||||||
rx_func(info);
|
rx_func(info);
|
||||||
delNotifiedFIFO_elt(res);
|
delNotifiedFIFO_elt(res);
|
||||||
|
|||||||
Reference in New Issue
Block a user