Delete job data when no response FIFO

This commit is contained in:
Sakthivel Velumani
2023-04-03 10:24:26 -04:00
parent 1d9a4a42e7
commit f3be849904
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -98,6 +98,8 @@ void *one_thread(void *arg) {
myThread->runningOnKey=-1;
mutexunlock(tp->incomingFifo.lockF);
}
else
delNotifiedFIFO_elt(elt);
} while (!myThread->terminate);
return NULL;
}
+2
View File
@@ -279,6 +279,8 @@ static inline void pushTpool(tpool_t *t, notifiedFIFO_elt_t *msg) {
if (msg->reponseFifo)
pushNotifiedFIFO(msg->reponseFifo, msg);
else
delNotifiedFIFO_elt(msg);
}
}