artdaq_core  v1_07_04
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
GlobalQueue.hh
1 #ifndef artdaq_core_Core_GlobalQueue_hh
2 #define artdaq_core_Core_GlobalQueue_hh
3 
4 #include "artdaq-core/Core/ConcurrentQueue.hh"
5 #include "artdaq-core/Data/RawEvent.hh"
6 #include <memory>
7 
8 namespace artdaq
9 {
13  typedef std::shared_ptr<RawEvent> RawEvent_ptr;
18 
25  RawEventQueue& getGlobalQueue(RawEventQueue::SizeType maxSize = std::numeric_limits<RawEventQueue::SizeType>::max());
26 }
27 
28 #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:10
std::shared_ptr< RawEvent > RawEvent_ptr
A smart pointer to a RawEvent object.
Definition: GlobalQueue.hh:13
artdaq::ConcurrentQueue< RawEvent_ptr > RawEventQueue
A ConcurrentQueue of RawEvent objects.
Definition: GlobalQueue.hh:17
SequenceType::size_type SizeType
Type for indexes in sequence.