osef test error

This commit is contained in:
Aurélien Gauthier 2022-06-15 16:27:56 +02:00
parent 21cb319b25
commit 9cf444c47e
3 changed files with 5 additions and 2 deletions

Binary file not shown.

View file

@ -53,6 +53,8 @@ void *threadCalculBoth(void *vargp){
char* fileName;
while(rawDataWriteFlag){
while(queueGetNextE(rawDataQueue) != NULL){
printf("ertyu\n");
rawDataQueue = queueGetNextE(rawDataQueue);
fileName = queueGetTabChar(rawDataQueue);
powerFunction(fileName, NULL);
@ -108,10 +110,9 @@ int main(int argc , char** argv){
period = 1 / freqEch;
invTimeBandWidth = 1 /(nRow * period);
firstRawDataQueue = queueCreateEmpty(); // change this for create empty
pthread_t rawData;
pthread_create(&rawData , NULL, threadSimulateFlux, (void *)&rawData);
pthread_t calcul;
pthread_create(&calcul , NULL, threadCalculBoth, (void *)&calcul);

View file

@ -36,8 +36,10 @@ void powerFunction(char* rawDataFileName, double **pw){
if(p !=NULL){
if(pw == NULL){
powerCalculation(p,pww);
}else{
powerCalculation(p,*pw);
}
appendDataInFile("powerData.csv",*pw,nCol-1);
freeArray(p,nRow);