mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-16 14:57:13 +02:00
bug in sem for new scans
This commit is contained in:
@ -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!
|
// waiting for the data processing thread to finish!
|
||||||
if (*threadedProcessing) {
|
if (*threadedProcessing) {
|
||||||
@ -480,6 +478,10 @@ int slsDetectorUtils::acquire(int delflag){
|
|||||||
cout << "wait for data processing thread" << endl;
|
cout << "wait for data processing thread" << endl;
|
||||||
#endif
|
#endif
|
||||||
setJoinThread(1);
|
setJoinThread(1);
|
||||||
|
|
||||||
|
//let processing thread continue and checkjointhread
|
||||||
|
sem_post(&sem_newRTAcquisition);
|
||||||
|
|
||||||
pthread_join(dataProcessingThread, &status);
|
pthread_join(dataProcessingThread, &status);
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << "data processing thread joined" << endl;
|
cout << "data processing thread joined" << endl;
|
||||||
|
Reference in New Issue
Block a user