mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-07 10:30:41 +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
|
//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){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user