debug rawdatafile close

This commit is contained in:
quentin.perret 2022-06-13 15:19:05 +02:00
parent 75639d3c4a
commit bfe730e0ba
3 changed files with 3 additions and 2 deletions

Binary file not shown.

View file

@ -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);
}

View file

@ -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);
}