artdaq_core  v3_05_10
GlobalQueue.hh
1 #ifndef artdaq_core_Core_GlobalQueue_hh
2 #define artdaq_core_Core_GlobalQueue_hh
3 
4 #include <memory>
5 #include "artdaq-core/Core/ConcurrentQueue.hh"
6 #include "artdaq-core/Data/RawEvent.hh"
7 
8 namespace artdaq {
12 typedef std::shared_ptr<RawEvent> RawEvent_ptr;
17 
24 RawEventQueue& getGlobalQueue(RawEventQueue::SizeType maxSize = std::numeric_limits<RawEventQueue::SizeType>::max());
25 } // namespace artdaq
26 
27 #endif /* artdaq_core_Core_GlobalQueue_hh */
RawEventQueue & getGlobalQueue(RawEventQueue::SizeType maxSize)
The first thread to call getGlobalQueue() causes the creation of the queue. The queue will be destroy...
Definition: GlobalQueue.cc:9
std::shared_ptr< RawEvent > RawEvent_ptr
A smart pointer to a RawEvent object.
Definition: GlobalQueue.hh:12
artdaq::ConcurrentQueue< RawEvent_ptr > RawEventQueue
A ConcurrentQueue of RawEvent objects.
Definition: GlobalQueue.hh:16
SequenceType::size_type SizeType
Type for indexes in sequence.