remove file during traitment

This commit is contained in:
quentin.perret 2022-06-13 17:35:00 +02:00
parent ce37306f65
commit 6cd7513501
5 changed files with 3 additions and 6 deletions

Binary file not shown.

View file

@ -29,8 +29,6 @@ void *threadCalcul(void *vargp){
rawDataQueue = queueGetNextE(rawDataQueue);
fileName = queueGetTabChar(rawDataQueue);
power(fileName,nRow,nCol,period,invTimeBandWidth);
/*remove(queueGetTabChar(rawDataQueue));
rawDataQueue = queueRmFrstE(rawDataQueue);*/
}
}
}

View file

@ -26,6 +26,7 @@ bool power(char* rawDataFileName,int N , int M, double periode , double invTimeB
powerCalculation(p,pw,N,M,periode,invTimeBandwidth);
writePowerData(pw,8);
freeArray(p,N);
remove(rawDataFileName);
return true;
}
else{

View file

@ -150,12 +150,10 @@ Pqueue queueRmLastE(Pqueue elem){
* @param elem target to remove (the element need to be the first)
* @return Pqueue the second element after remove first
*/
Pqueue queueRmFrstE(Pqueue elem){
void queueRmFrstE(Pqueue elem){
assert(elem);
Pqueue tmp = elem->pNextE;
free(elem->tabChar);
free(elem);
return tmp;
}
/**

View file

@ -19,7 +19,7 @@ void queueAddLastQ(Pqueue elem, const char* str, int len);
//Removers
Pqueue queueRmLastE(Pqueue elem);
Pqueue queueRmFrstE(Pqueue elem);
void queueRmFrstE(Pqueue elem);
Pqueue queueNextDelFrst(Pqueue elem);
//print function