debug rawdatafile close
This commit is contained in:
parent
75639d3c4a
commit
bfe730e0ba
BIN
Code-C/main
BIN
Code-C/main
Binary file not shown.
|
@ -45,7 +45,7 @@ int main(int argc , char** argv){
|
|||
pthread_create(&rawData , NULL, simulateFlux, (void *)&rawData);
|
||||
|
||||
pthread_t calcul;
|
||||
pthread_create(&calcul , NULL, threadCalcul, (void *)&calcul);
|
||||
//pthread_create(&calcul , NULL, threadCalcul, (void *)&calcul);
|
||||
|
||||
pthread_exit(NULL);
|
||||
}
|
|
@ -121,7 +121,7 @@ void *simulateFlux(void *vargp){
|
|||
|
||||
while(writeOneRawData(rawDataFile)){
|
||||
if(cptData == nRow){
|
||||
printf("in if\n");
|
||||
fclose(rawDataFile);
|
||||
cptData = 0;
|
||||
cptFile++;
|
||||
//create struct here
|
||||
|
@ -131,4 +131,5 @@ void *simulateFlux(void *vargp){
|
|||
FILE *rawDataFile = fopen(fileName,"w+");
|
||||
}
|
||||
}
|
||||
queuePrintWholeQ(firstRawDataQueue);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue