From 15e1ac87508f9e0bb95a5bf614f493e50887d578 Mon Sep 17 00:00:00 2001 From: l_maliakal_d Date: Thu, 16 Jan 2014 10:23:03 +0000 Subject: [PATCH] some debugs commented out git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@715 951219d9-93cf-4727-9268-0efd64621fa3 --- .../slsReceiver/slsReceiverFunctionList.cpp | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/slsDetectorSoftware/slsReceiver/slsReceiverFunctionList.cpp b/slsDetectorSoftware/slsReceiver/slsReceiverFunctionList.cpp index 7c31ead5b..1d69c0b3a 100644 --- a/slsDetectorSoftware/slsReceiver/slsReceiverFunctionList.cpp +++ b/slsDetectorSoftware/slsReceiver/slsReceiverFunctionList.cpp @@ -1065,19 +1065,19 @@ int slsReceiverFunctionList::startWriting(){ //pop fifo->pop(wbuf); numpackets = (uint16_t)(*((uint16_t*)wbuf)); -//#ifdef VERYDEBUG +#ifdef VERYDEBUG cout << "numpackets:" << hex << numpackets << endl; cout << ithread << "*** popped from fifo " << numpackets << endl; -//#endif +#endif //last dummy packet if(numpackets == 0xFFFF){ -//#ifdef VERYDEBUG +#ifdef VERYDEBUG cout << "popped last dummy frame:" << (void*)wbuf << endl; -//#endif +#endif //data compression, check if jobs done if(dataCompression){ /*while(!filter->checkIfJobsDone()) @@ -1086,9 +1086,9 @@ int slsReceiverFunctionList::startWriting(){ } //free fifo while(!fifoFree->push(wbuf)); -//#ifdef VERYDEBUG +#ifdef VERYDEBUG cout << "fifo freed:" << (void*)wbuf << endl; -//#endif +#endif //update status pthread_mutex_lock(&status_mutex); status = RUN_FINISHED; @@ -1128,9 +1128,9 @@ int slsReceiverFunctionList::startWriting(){ currframenum = tempframenum; pthread_mutex_unlock(&progress_mutex); } -//#ifdef VERYDEBUG +#ifdef VERYDEBUG cout << ithread << " tempframenum:" << dec << tempframenum << " curframenum:" << currframenum << endl; -//#endif +#endif //without datacompression: write datacall back, or write data, free fifo @@ -1145,9 +1145,9 @@ int slsReceiverFunctionList::startWriting(){ pthread_mutex_unlock(&progress_mutex); } while(!fifoFree->push(wbuf)); -//#ifdef VERYVERBOSE +#ifdef VERYVERBOSE cout<<"buf freed:"<<(void*)wbuf<push(wbuf)); -//#ifdef VERYVERBOSE +#ifdef VERYVERBOSE cout<<"buf freed:"<<(void*)wbuf<