1 #include "otsdaq/DataManager/CircularBufferBase.h"
2 #include "otsdaq/DataManager/DataConsumer.h"
3 #include "otsdaq/DataManager/DataProducer.h"
8 CircularBufferBase::CircularBufferBase(
const std::string& bufferID) : dataBufferId_(bufferID), mfSubject_(
"CircularBuffer:" + dataBufferId_) {}
11 CircularBufferBase::~CircularBufferBase(
void) {}
14 void CircularBufferBase::registerProducer(
DataProcessor* producer,
unsigned int numberOfSubBuffers)
16 registerProducer(producer->getProcessorID(), numberOfSubBuffers);
17 producer->setCircularBuffer(
this);
21 void CircularBufferBase::registerConsumer(
DataProcessor* consumer)
23 registerConsumer(consumer->getProcessorID(), HighConsumerPriority);
24 consumer->setCircularBuffer(
this);