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
else{
int caught = -1;
char c;
while(true){
//cout.flush();
//cout<<flush;
usleep(40000); //20ms need this else connecting error to receiver (too fast)
cout.flush();
cout<<flush;
usleep(100 * 1000); //20ms need this else connecting error to receiver (too fast)
if (checkJoinThread()){
break;
}
c=fgetc(stdin);
if (c=='q') {
cout<<"gonna stop"<<endl;
stopAcquisition();
}
//get progress
pthread_mutex_lock(&mg);
if(setReceiverOnline() == ONLINE_FLAG){