bug in sem for new scans

This commit is contained in:
Dhanya Maliakal
2016-12-16 14:59:55 +01:00
parent 64843c1c76
commit 2d1c91c0e0

View File

@ -471,8 +471,6 @@ int slsDetectorUtils::acquire(int delflag){
}
//let processing thread continue and checkjointhread
sem_post(&sem_newRTAcquisition);
// waiting for the data processing thread to finish!
if (*threadedProcessing) {
@ -480,6 +478,10 @@ int slsDetectorUtils::acquire(int delflag){
cout << "wait for data processing thread" << endl;
#endif
setJoinThread(1);
//let processing thread continue and checkjointhread
sem_post(&sem_newRTAcquisition);
pthread_join(dataProcessingThread, &status);
#ifdef VERBOSE
cout << "data processing thread joined" << endl;