mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 15:20:02 +02:00
socket disconnecting in receiver
This commit is contained in:
parent
8b0895add0
commit
291fe8bc22
@ -452,12 +452,12 @@ void slsDetectorUtils::acquire(int delflag){
|
|||||||
executeAction(stopScript);
|
executeAction(stopScript);
|
||||||
} else{
|
} else{
|
||||||
|
|
||||||
pthread_mutex_lock(&mg);
|
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << "findex incremented " << endl;
|
cout << "findex incremented " << endl;
|
||||||
#endif
|
#endif
|
||||||
if(*correctionMask&(1<<WRITE_FILE))
|
if(*correctionMask&(1<<WRITE_FILE))
|
||||||
IncrementFileIndex();
|
IncrementFileIndex();
|
||||||
|
pthread_mutex_lock(&mg);
|
||||||
setFileIndex(fileIO::getFileIndex());
|
setFileIndex(fileIO::getFileIndex());
|
||||||
pthread_mutex_unlock(&mg);
|
pthread_mutex_unlock(&mg);
|
||||||
|
|
||||||
@ -465,13 +465,12 @@ void slsDetectorUtils::acquire(int delflag){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
pthread_mutex_lock(&mg);
|
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << "findex incremented " << endl;
|
cout << "findex incremented " << endl;
|
||||||
#endif
|
#endif
|
||||||
if(*correctionMask&(1<<WRITE_FILE))
|
if(*correctionMask&(1<<WRITE_FILE))
|
||||||
IncrementFileIndex();
|
IncrementFileIndex();
|
||||||
|
pthread_mutex_lock(&mg);
|
||||||
setFileIndex(fileIO::getFileIndex());
|
setFileIndex(fileIO::getFileIndex());
|
||||||
pthread_mutex_unlock(&mg);
|
pthread_mutex_unlock(&mg);
|
||||||
|
|
||||||
|
@ -505,9 +505,7 @@ void* postProcessing::processData(int delflag) {
|
|||||||
|
|
||||||
cout.flush();
|
cout.flush();
|
||||||
cout<<flush;
|
cout<<flush;
|
||||||
usleep(2000); //2ms need this else connecting error to receiver (too fast?)
|
usleep(20000); //20ms need this else connecting error to receiver (too fast)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//get progress
|
//get progress
|
||||||
if(setReceiverOnline() == ONLINE_FLAG){
|
if(setReceiverOnline() == ONLINE_FLAG){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user