thread calcul ok
This commit is contained in:
parent
52bded6534
commit
ce37306f65
|
@ -73,7 +73,7 @@ long **getRawDataArray(char* rawDataFileName , int N , int M){
|
|||
p = get(N, M);
|
||||
fillArrayWithRawData(rawDataFileName,p ,N, M);
|
||||
if(checkArrayFullyFill(p,N,M)){
|
||||
clearRawData(N);
|
||||
//clearRawData(N);
|
||||
return p;
|
||||
}
|
||||
else{
|
||||
|
|
BIN
Code-C/main
BIN
Code-C/main
Binary file not shown.
|
@ -23,11 +23,11 @@ double invTimeBandWidth = 0;
|
|||
|
||||
void *threadCalcul(void *vargp){
|
||||
Pqueue rawDataQueue = firstRawDataQueue;
|
||||
char* fileName;
|
||||
while(rawDataWriteFlag){
|
||||
while(queueGetNextE(rawDataQueue) != NULL){
|
||||
char* fileName = queueGetTabChar(rawDataQueue);
|
||||
//queuePrintE(rawDataQueue);
|
||||
printf("%s\n",fileName);
|
||||
rawDataQueue = queueGetNextE(rawDataQueue);
|
||||
fileName = queueGetTabChar(rawDataQueue);
|
||||
power(fileName,nRow,nCol,period,invTimeBandWidth);
|
||||
/*remove(queueGetTabChar(rawDataQueue));
|
||||
rawDataQueue = queueRmFrstE(rawDataQueue);*/
|
||||
|
@ -36,6 +36,7 @@ void *threadCalcul(void *vargp){
|
|||
}
|
||||
|
||||
int main(int argc , char** argv){
|
||||
|
||||
rawDataWriteFlag = true;
|
||||
|
||||
period = 1 / freqEch;
|
||||
|
|
Loading…
Reference in a new issue