mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +02:00
bug fix wasnt locked before setframeindex and unlocked after
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@556 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
parent
d4a4786670
commit
40c0772dda
@ -240,19 +240,21 @@ void slsDetectorUtils::acquire(int delflag){
|
||||
}
|
||||
|
||||
setCurrentFrameIndex(0);
|
||||
//if ((timerValue[FRAME_NUMBER]*timerValue[CYCLES_NUMBER])>1) {
|
||||
if (multiframe>1){
|
||||
|
||||
if(receiver)
|
||||
pthread_mutex_lock(&mg);
|
||||
if (multiframe>1)
|
||||
setFrameIndex(0);
|
||||
} else {
|
||||
else
|
||||
setFrameIndex(-1);
|
||||
}
|
||||
|
||||
|
||||
if(receiver){
|
||||
//send receiver file name
|
||||
pthread_mutex_unlock(&mg);//unlock previous
|
||||
pthread_mutex_lock(&mp);
|
||||
createFileName();
|
||||
pthread_mutex_unlock(&mp);
|
||||
|
||||
//send receiver file name
|
||||
pthread_mutex_lock(&mg);
|
||||
setFileName(fileIO::getFileName());
|
||||
if(setReceiverOnline()==OFFLINE_FLAG){
|
||||
|
Loading…
x
Reference in New Issue
Block a user