1 #ifndef _RMS_LINKEDBLOCKINGQUEUE_H 2 #define _RMS_LINKEDBLOCKINGQUEUE_H 4 #include <boost/thread/mutex.hpp> 5 #include <boost/thread/condition.hpp> 6 #include <boost/thread/xtime.hpp> 39 void add(QueueType
object) {
59 while (
_queue.size() == 0) {
63 queueEntry =
_queue.front();
80 QueueType
poll(
long timeout) {
85 #if BOOST_VERSION >= 105000 86 boost::xtime_get(&xt, boost::TIME_UTC_);
88 boost::xtime_get(&xt, boost::TIME_UTC);
95 while (
_queue.size() == 0) {
101 queueEntry =
_queue.front();
116 QueueType queueEntry;
119 while (
_queue.size() == 0) {
123 queueEntry =
_queue.front();
QueueType poll(long timeout)
Filter events based on their run/event numbers.
boost::condition _queueCondition
std::queue< QueueType > _queue
void add(QueueType object)