mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-27 16:50:02 +02:00
bug fix: locks in acquire
This commit is contained in:
parent
f7cb2b5dcd
commit
b33b2edbd0
@ -64,9 +64,12 @@ int slsDetectorUtils::acquire(int delflag){
|
|||||||
if(!receiver){
|
if(!receiver){
|
||||||
setDetectorIndex(-1);
|
setDetectorIndex(-1);
|
||||||
}
|
}
|
||||||
|
pthread_mutex_lock(&mg);
|
||||||
int nc=setTimer(CYCLES_NUMBER,-1);
|
int nc=setTimer(CYCLES_NUMBER,-1);
|
||||||
int nf=setTimer(FRAME_NUMBER,-1);
|
int nf=setTimer(FRAME_NUMBER,-1);
|
||||||
|
pthread_mutex_unlock(&mg);
|
||||||
|
|
||||||
|
|
||||||
if (nc==0) nc=1;
|
if (nc==0) nc=1;
|
||||||
if (nf==0) nf=1;
|
if (nf==0) nf=1;
|
||||||
int multiframe = nc*nf;
|
int multiframe = nc*nf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user