mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 14:38:14 +02:00
included threaded 0 as a possibility
This commit is contained in:
parent
3a79f0ad9b
commit
fda9c85bb3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user