MCPcopy Create free account
hub / github.com/Abc-Arbitrage/Disruptor-cpp / createEventProcessor

Method createEventProcessor

Disruptor.Tests/DisruptorFixture.cpp:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 std::shared_ptr< IEventProcessor > DisruptorFixture::EventProcessorFactory::createEventProcessor(const std::shared_ptr< RingBuffer< TestEvent > >& ringBuffer,
58 const std::vector< std::shared_ptr< ISequence > >& barrierSequences)
59 {
60 BOOST_CHECK_MESSAGE((size_t)m_sequenceLength == barrierSequences.size(), "Should not have had any barrier sequences");
61 return std::make_shared< BatchEventProcessor< TestEvent > >(m_disruptor->ringBuffer(), ringBuffer->newBarrier(barrierSequences), m_eventHandler);
62 }
63
64 std::shared_ptr< TestWorkHandler > DisruptorFixture::createTestWorkHandler()
65 {

Callers 1

createEventProcessorsMethod · 0.80

Calls 3

ringBufferMethod · 0.80
sizeMethod · 0.45
newBarrierMethod · 0.45

Tested by

no test coverage detected