Compare commits
No commits in common. "d6f1fc5cfaad7d2665c7864a6a09caf2d86f3a0a" and "21cb319b25a36f2714e6c79b5ae2e3a9dc22378c" have entirely different histories.
d6f1fc5cfa
...
21cb319b25
BIN
Code-C/main
Executable file
BIN
Code-C/main
Executable file
Binary file not shown.
|
@ -53,8 +53,6 @@ void *threadCalculBoth(void *vargp){
|
|||
char* fileName;
|
||||
while(rawDataWriteFlag){
|
||||
while(queueGetNextE(rawDataQueue) != NULL){
|
||||
|
||||
printf("ertyu\n");
|
||||
rawDataQueue = queueGetNextE(rawDataQueue);
|
||||
fileName = queueGetTabChar(rawDataQueue);
|
||||
powerFunction(fileName, NULL);
|
||||
|
@ -110,9 +108,10 @@ 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);
|
||||
|
||||
|
|
|
@ -36,10 +36,8 @@ 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);
|
||||
|
|
Loading…
Reference in a new issue