19 #include <boost/thread.hpp> 20 #include <boost/circular_buffer.hpp> 37 boost::mutex::scoped_lock lock(_mutex);
38 return _queue.empty();
43 boost::mutex::scoped_lock lock(_mutex);
44 _queue.push_back(data);
46 _condition.notify_one();
51 boost::mutex::scoped_lock lock(_mutex);
55 data = _queue.front();
63 boost::mutex::scoped_lock lock(_mutex);
65 _condition.wait(lock);
boost::condition_variable _condition
boost::circular_buffer< T > _queue