3 #ifndef PCL_OUTOFCORE_MONITOR_QUEUE_IMPL_H_ 4 #define PCL_OUTOFCORE_MONITOR_QUEUE_IMPL_H_ 8 template<
typename DataT>
13 push (
const DataT& newData)
15 boost::mutex::scoped_lock lock (monitor_mutex_);
16 queue_.push (newData);
17 item_available_.notify_one ();
23 boost::mutex::scoped_lock lock (monitor_mutex_);
27 item_available_.wait (lock);
30 DataT temp (queue_.front ());
37 std::queue<DataT> queue_;
38 boost::mutex monitor_mutex_;
39 boost::condition item_available_;
42 #endif //PCL_OUTOFCORE_MONITOR_QUEUE_IMPL_H_
void push(const DataT &newData)