29 #ifndef VIGIR_FOOTSTEP_PLANNING_THREADING_QUEUE_H__ 30 #define VIGIR_FOOTSTEP_PLANNING_THREADING_QUEUE_H__ 35 #include <boost/thread/mutex.hpp> 36 #include <boost/thread/condition_variable.hpp> 60 queued_jobs =
typename std::queue<boost::shared_ptr<T> >();
78 for (
typename std::list<
boost::shared_ptr<T> >::iterator itr = jobs.begin(); itr != jobs.end(); itr++)
90 ROS_DEBUG(
"[Queue] Waiting for Job getting queued...");
109 ROS_DEBUG(
"[Queue] Waiting for Job getting queued...");
114 n = std::min(n, static_cast<unsigned int>(
queued_jobs.size()));
117 for (
unsigned int i = 0; i < n; i++)
136 ROS_DEBUG(
"[Queue] Notify for finished job.");
153 ROS_DEBUG(
"[Queue] Waiting for Jobs getting finished...");
155 ROS_DEBUG(
"[Queue] Waiting for Jobs getting finished...Done!");
void notify_all() BOOST_NOEXCEPT
void wait(unique_lock< mutex > &m)
void notify_one() BOOST_NOEXCEPT