34 #include <boost/atomic.hpp> 35 #include <boost/thread.hpp> 45 boost::lock_guard<boost::mutex> other_lock(other.
queue_mutex_);
56 boost::lock_guard<boost::mutex> other_lock(other.
queue_mutex_);
68 void push(
const T& value) {
75 void push(
const std::vector<T>& values) {
78 for (
typename std::vector<T>::const_iterator it = values.begin();
79 it != values.end(); ++it) {
std::queue< T > internal_queue_
shared_queue(const shared_queue &other)
boost::mutex queue_mutex_
void push(const T &value)
boost::atomic< bool > queue_empty_
void push(const std::vector< T > &values)
shared_queue & operator=(const shared_queue &other)