mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-19 18:14:04 +01:00
unnecessary lock in acquire
This commit is contained in:
1 parent
8ae1e812e6
commit
5012ea0c6c
2 files changed
+1
-3
No files matched your search
@@ -1247,7 +1247,7 @@ string slsDetectorCommand::cmdStatus(int narg, char *args[], int action) {
|
||||
return string("unknown action");
|
||||
} else if (action==HELP_ACTION) {
|
||||
return helpStatus(narg,args,HELP_ACTION);
|
||||
}
|
||||
}
|
||||
runStatus s=myDet->getRunStatus();
|
||||
return myDet->runStatusType(s);
|
||||
|
||||
|
||||
@@ -44,14 +44,12 @@ slsDetectorUtils::slsDetectorUtils() {
|
||||
int slsDetectorUtils::acquire(int delflag){
|
||||
|
||||
//ensure acquire isnt started multiple times by same client
|
||||
pthread_mutex_lock(&mp);
|
||||
if(getAcquiringFlag() == false)
|
||||
setAcquiringFlag(true);
|
||||
else{
|
||||
std::cout << "Error: Acquire has already been started." << std::endl;
|
||||
return FAIL;
|
||||
}
|
||||
pthread_mutex_unlock(&mp);
|
||||
|
||||
|
||||
bool receiver = (setReceiverOnline()==ONLINE_FLAG);
|
||||
|
||||
Reference in new issue
Block a user