fix / init the variable

init the PUSCH symbols per thread to avoid for stucking
This commit is contained in:
Tsung-Yu Chan
2023-09-25 12:48:28 +02:00
committed by Tsung Yu Chan
parent e54d4a98b6
commit 090ac4870d
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -475,7 +475,8 @@ void init_gNB_Tpool(int inst) {
PHY_VARS_gNB *gNB;
gNB = RC.gNB[inst];
gNB_L1_proc_t *proc = &gNB->proc;
// PUSCH symbols per thread need to be calculated by how many threads we have
gNB->num_pusch_symbols_per_thread = 1;
// ULSCH decoding threadpool
initTpool(get_softmodem_params()->threadPoolConfig, &gNB->threadPool, cpumeas(CPUMEAS_GETSTATE));
// ULSCH decoder result FIFO
@@ -1931,7 +1931,7 @@ int nr_rx_pusch_tp(PHY_VARS_gNB *gNB,
while (gNB->nbSymb > 0)
{
notifiedFIFO_elt_t *req=pullTpool(&gNB->respPuschSymb, &gNB->threadPool);
notifiedFIFO_elt_t *req = pullTpool(&gNB->respPuschSymb, &gNB->threadPool);
gNB->nbSymb--;
delNotifiedFIFO_elt(req);
}