00001 #include "artdaq-core/Core/GlobalQueue.hh"00002
00003 namespace artdaq {
00004 // In C++03, one would need to use boost::once_flag and00005 // boost::call_once to make sure that there is no race condition00006 // between threads for the creation of 'theQueue'.00007 // in C++11, this is thread-safe. See C++11 6.7p4.00008
00009 RawEventQueue& getGlobalQueue(RawEventQueue::SizeType maxSize)
00010 {
00011 staticRawEventQueue theQueue(maxSize);
00012 return theQueue;
00013 }
00014 } // namespace artdaq