progress uncommented

This commit is contained in:
Thattil Dhanya 2016-11-02 16:24:23 +01:00
parent 941b3dbb02
commit 40babc23a3

View File

@ -495,17 +495,25 @@ void* postProcessing::processData(int delflag) {
//only update progress //only update progress
else{ else{
int caught = -1; int caught = -1;
char c;
while(true){ while(true){
//cout.flush(); cout.flush();
//cout<<flush; cout<<flush;
usleep(40000); //20ms need this else connecting error to receiver (too fast) usleep(100 * 1000); //20ms need this else connecting error to receiver (too fast)
if (checkJoinThread()){ if (checkJoinThread()){
break; break;
} }
c=fgetc(stdin);
if (c=='q') {
cout<<"gonna stop"<<endl;
stopAcquisition();
}
//get progress //get progress
pthread_mutex_lock(&mg); pthread_mutex_lock(&mg);
if(setReceiverOnline() == ONLINE_FLAG){ if(setReceiverOnline() == ONLINE_FLAG){