mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-20 08:42:21 +01:00
changed everything to depend on receiver online shared memory flag, and if it is online is only checked rarely
This commit is contained in:
@@ -286,12 +286,6 @@ int slsDetectorUtils::acquire(int delflag){
|
||||
//send receiver file name
|
||||
pthread_mutex_lock(&mg);
|
||||
setFileName(fileIO::getFileName());
|
||||
if(setReceiverOnline()==OFFLINE_FLAG){
|
||||
stopReceiver();
|
||||
*stoppedFlag=1;
|
||||
pthread_mutex_unlock(&mg);
|
||||
break;
|
||||
}
|
||||
//start receiver
|
||||
if(startReceiver() == FAIL) {
|
||||
stopReceiver();
|
||||
@@ -349,6 +343,12 @@ int slsDetectorUtils::acquire(int delflag){
|
||||
}
|
||||
//online
|
||||
else{
|
||||
if(setReceiverOnline(ONLINE_FLAG)!=ONLINE_FLAG){
|
||||
stopAcquisition();
|
||||
stopReceiver();
|
||||
pthread_mutex_unlock(&mg);
|
||||
break;
|
||||
}
|
||||
stopReceiver();
|
||||
// cout<<"***********receiver stopped"<<endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user