proper thread handling for the REST receiver

This commit is contained in:
2014-11-12 11:54:12 +01:00
committed by Manuel Guizar
parent 72bf64ff57
commit 3324667d05
4 changed files with 64 additions and 32 deletions

View File

@ -53,8 +53,7 @@ void UDPBaseImplementation::initializeMembers(){
int UDPBaseImplementation::setDetectorType(detectorType det){
cout << "[WARNING] This is a base implementation, " << __func__ << " not correctly implemented" << endl;
cout << "Setting Receiver Type " << endl;
cout << "Setting Receiver Type " << endl;
deleteMembers();
initializeMembers();
@ -76,7 +75,7 @@ int UDPBaseImplementation::setDetectorType(detectorType det){
return FAIL;
break;
}
/*
//moench variables
if(myDetectorType == GOTTHARD){
fifosize = GOTTHARD_FIFO_SIZE;
@ -138,7 +137,7 @@ int UDPBaseImplementation::setDetectorType(detectorType det){
cout << "Ready..." << endl;
return OK;
*/
return OK;
}
@ -1124,7 +1123,7 @@ void UDPBaseImplementation::closeFile(int ithr)
{
FILE_LOG(logDEBUG) << __AT__ << "called";
/*
if(!dataCompression){
if(sfilefd){
#ifdef VERBOSE
@ -1171,7 +1170,7 @@ void UDPBaseImplementation::closeFile(int ithr)
#endif
}
*/
FILE_LOG(logDEBUG) << __AT__ << "exited";
}