Compare commits

..

No commits in common. "98e11c2443d4471d5d6f1319d589227aa9a17fa3" and "46e02c1d6d849d619e85b56a4487ba283ce818ab" have entirely different histories.

4 changed files with 1 additions and 17 deletions

View file

@ -37,15 +37,3 @@ void writePowerData(double powerArray[], int nCol){
} }
fclose(f); fclose(f);
} }
void threadCalcul(){
while(stopFlag == false){
if(rawDataWriteFlag){
pthread_mutex_lock(&mutex);
while(power(nRow,nCol,period,timeBandwidth) == false){}
pthread_mutex_unlock(&mutex);
rawDataWriteFlag = true;
delay(10);
}
}
}

View file

@ -3,7 +3,5 @@
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>
bool writeFlag = 0;
void clearRawData(int N); void clearRawData(int N);
void writePowerData(double a[], int N); void writePowerData(double a[], int N);

View file

@ -1,6 +1,5 @@
#include <stdbool.h> #include <stdbool.h>
extern bool rawDataWriteFlag , stopFlag;
extern int nRow; extern int nRow;
extern int nCol; extern int nCol;
extern double freqEch; extern double freqEch;

View file

@ -6,7 +6,6 @@
#include "power.h" #include "power.h"
#include "initialParameters.h" #include "initialParameters.h"
bool rawDataWriteFlag = 0, stopFlag = 0;
int nRow = 100000; int nRow = 100000;
int nCol = 9; int nCol = 9;
double freqEch = 250; double freqEch = 250;