included threaded 0 as a possibility

This commit is contained in:
Dhanya Maliakal 2017-09-20 17:07:51 +02:00
parent 3a79f0ad9b
commit fda9c85bb3

View File

@ -521,16 +521,11 @@ void* postProcessing::processData(int delflag) {
int ifp;
while(true){
//cout.flush();
//cout<<flush;
usleep(100 * 1000); //20ms need this else connecting error to receiver (too fast)
if (checkJoinThread()){
break;
}
// set only in startThread
if (*threadedProcessing==0)
setTotalProgress();
// to exit acquire by typing q
ifp=kbhit();
if (ifp!=0){
c=fgetc(stdin);
@ -541,7 +536,6 @@ void* postProcessing::processData(int delflag) {
}
//get progress
pthread_mutex_lock(&mg);
if(setReceiverOnline() == ONLINE_FLAG){
@ -557,16 +551,17 @@ void* postProcessing::processData(int delflag) {
cout << "caught:" << caught << endl;
#endif
}
// exiting loop
if (*threadedProcessing==0)
break;
if (checkJoinThread()){
break;
}
usleep(200 * 1000); //20ms need this else connecting error to receiver (too fast)
}
}
}
return 0;