remove file during traitment
This commit is contained in:
parent
ce37306f65
commit
6cd7513501
BIN
Code-C/main
BIN
Code-C/main
Binary file not shown.
|
@ -29,8 +29,6 @@ void *threadCalcul(void *vargp){
|
||||||
rawDataQueue = queueGetNextE(rawDataQueue);
|
rawDataQueue = queueGetNextE(rawDataQueue);
|
||||||
fileName = queueGetTabChar(rawDataQueue);
|
fileName = queueGetTabChar(rawDataQueue);
|
||||||
power(fileName,nRow,nCol,period,invTimeBandWidth);
|
power(fileName,nRow,nCol,period,invTimeBandWidth);
|
||||||
/*remove(queueGetTabChar(rawDataQueue));
|
|
||||||
rawDataQueue = queueRmFrstE(rawDataQueue);*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,7 @@ bool power(char* rawDataFileName,int N , int M, double periode , double invTimeB
|
||||||
powerCalculation(p,pw,N,M,periode,invTimeBandwidth);
|
powerCalculation(p,pw,N,M,periode,invTimeBandwidth);
|
||||||
writePowerData(pw,8);
|
writePowerData(pw,8);
|
||||||
freeArray(p,N);
|
freeArray(p,N);
|
||||||
|
remove(rawDataFileName);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
|
@ -150,12 +150,10 @@ Pqueue queueRmLastE(Pqueue elem){
|
||||||
* @param elem target to remove (the element need to be the first)
|
* @param elem target to remove (the element need to be the first)
|
||||||
* @return Pqueue the second element after remove first
|
* @return Pqueue the second element after remove first
|
||||||
*/
|
*/
|
||||||
Pqueue queueRmFrstE(Pqueue elem){
|
void queueRmFrstE(Pqueue elem){
|
||||||
assert(elem);
|
assert(elem);
|
||||||
Pqueue tmp = elem->pNextE;
|
|
||||||
free(elem->tabChar);
|
free(elem->tabChar);
|
||||||
free(elem);
|
free(elem);
|
||||||
return tmp;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -19,7 +19,7 @@ void queueAddLastQ(Pqueue elem, const char* str, int len);
|
||||||
|
|
||||||
//Removers
|
//Removers
|
||||||
Pqueue queueRmLastE(Pqueue elem);
|
Pqueue queueRmLastE(Pqueue elem);
|
||||||
Pqueue queueRmFrstE(Pqueue elem);
|
void queueRmFrstE(Pqueue elem);
|
||||||
Pqueue queueNextDelFrst(Pqueue elem);
|
Pqueue queueNextDelFrst(Pqueue elem);
|
||||||
|
|
||||||
//print function
|
//print function
|
||||||
|
|
Loading…
Reference in a new issue