solved bug concerning headers

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@185 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
x04sa
2012-06-01 07:25:02 +00:00
parent 0ef003646e
commit 0a561c1c1f
3 changed files with 29 additions and 23 deletions

View File

@ -97,7 +97,6 @@ void slsDetectorUtils::acquire(int delflag){
ns1=1;
//cout << "action at start" << endl;
if (*stoppedFlag==0) {
executeAction(startScript);
@ -142,6 +141,8 @@ void slsDetectorUtils::acquire(int delflag){
break;
createFileName();
if (*stoppedFlag==0) {
executeAction(scriptBefore);
} else
@ -149,6 +150,7 @@ void slsDetectorUtils::acquire(int delflag){
if (*stoppedFlag==0) {
executeAction(headerBefore);
@ -195,8 +197,9 @@ void slsDetectorUtils::acquire(int delflag){
pthread_mutex_lock(&mp);
while (queuesize){
pthread_mutex_unlock(&mp);
usleep(10000);
usleep(100000);
pthread_mutex_lock(&mp);
}
pthread_mutex_unlock(&mp);