mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 05:17:13 +02:00
almosst
This commit is contained in:
@ -157,7 +157,8 @@ int slsDetectorUtils::acquire(int delflag){
|
||||
|
||||
|
||||
if (*threadedProcessing) {
|
||||
sem_init(&dataThreadStartedSemaphore,1,0);
|
||||
if(dataReady)
|
||||
sem_init(&dataThreadStartedSemaphore,1,0);
|
||||
startThread(delflag);
|
||||
}
|
||||
#ifdef VERBOSE
|
||||
@ -171,6 +172,7 @@ int slsDetectorUtils::acquire(int delflag){
|
||||
|
||||
if(*threadedProcessing && dataReady)
|
||||
sem_wait(&dataThreadStartedSemaphore);
|
||||
|
||||
for(int im=0;im<nm;im++) {
|
||||
|
||||
#ifdef VERBOSE
|
||||
@ -348,7 +350,6 @@ int slsDetectorUtils::acquire(int delflag){
|
||||
pthread_mutex_lock(&mg);
|
||||
stopReceiver();
|
||||
pthread_mutex_unlock(&mg);
|
||||
cout<<"receiver stopped"<<endl;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user