mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-06 01:50:40 +02:00
progress uncommented
This commit is contained in:
parent
941b3dbb02
commit
40babc23a3
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user