fixed bug making buffer always busy
authorslindal <slindal@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Nov 2010 14:31:14 +0000 (14:31 +0000)
committerslindal <slindal@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Nov 2010 14:31:14 +0000 (14:31 +0000)
EVE/EveHLT/AliEveEventBuffer.cxx

index f676540..959a1f6 100644 (file)
@@ -91,16 +91,11 @@ void * AliEveEventBuffer::BufferThread(void * buffer) {
 
 ///_____________________________________________________________________________
 void AliEveEventBuffer::MonitorBuffer() {
-  cout << "Monitorbuffer: " << endl;
-  if(GetBusy()) {
-    cout << "Already called FetchEvent()" << endl;
-  } else {
-    SetBusy(kTRUE);
-    FetchEvent();
-    SetBusy(kFALSE);
-  }
-  
+  cout << "Monitorbuffer() " << ;
+  SetBusy(kTRUE);
+  FetchEvent();
   SetBusy(kFALSE);
+  cout << "done " << endl;
 }
 
 
@@ -108,15 +103,7 @@ void AliEveEventBuffer::MonitorBuffer() {
 TObject * AliEveEventBuffer::NextEvent() {
   //See header file for documentation
   cout << "NextEvent()"<<endl;
-
-
-  // if(fBusy) {
-  //   cout << "Event Buffer busy"<<endl;
-  //   return NULL;
-  // }
-  //  else SetBusy(kTRUE);
   TObject * nextEvent = GetNextUnSeen();
-  //SetBusy(kFALSE);
   return nextEvent;
 }