#include <queue.h>
Public Member Functions | |
void | clear () |
bool | hasOpenJobs () const |
void | justFinishedJobs (unsigned int n) |
Queue () | |
void | queueJob (boost::shared_ptr< T > &job) |
void | queueJobs (std::list< boost::shared_ptr< T > > &jobs) |
boost::shared_ptr< T > & | waitAndDequeueJob () |
void | waitAndDequeueJobs (std::vector< boost::shared_ptr< T > > &jobs, unsigned int n) |
void | waitUntilJobsProcessed () const |
virtual | ~Queue () |
Protected Attributes | |
unsigned int | job_counter |
boost::condition_variable | jobs_finished_condition |
std::queue< boost::shared_ptr < T > > | queued_jobs |
boost::condition_variable | queued_jobs_condition |
boost::mutex | queued_jobs_mutex |
vigir_footstep_planning::threading::Queue< T >::Queue | ( | ) | [inline] |
virtual vigir_footstep_planning::threading::Queue< T >::~Queue | ( | ) | [inline, virtual] |
void vigir_footstep_planning::threading::Queue< T >::clear | ( | ) | [inline] |
bool vigir_footstep_planning::threading::Queue< T >::hasOpenJobs | ( | ) | const [inline] |
void vigir_footstep_planning::threading::Queue< T >::justFinishedJobs | ( | unsigned int | n | ) | [inline] |
void vigir_footstep_planning::threading::Queue< T >::queueJob | ( | boost::shared_ptr< T > & | job | ) | [inline] |
void vigir_footstep_planning::threading::Queue< T >::queueJobs | ( | std::list< boost::shared_ptr< T > > & | jobs | ) | [inline] |
boost::shared_ptr<T>& vigir_footstep_planning::threading::Queue< T >::waitAndDequeueJob | ( | ) | [inline] |
void vigir_footstep_planning::threading::Queue< T >::waitAndDequeueJobs | ( | std::vector< boost::shared_ptr< T > > & | jobs, |
unsigned int | n | ||
) | [inline] |
void vigir_footstep_planning::threading::Queue< T >::waitUntilJobsProcessed | ( | ) | const [inline] |
unsigned int vigir_footstep_planning::threading::Queue< T >::job_counter [protected] |
boost::condition_variable vigir_footstep_planning::threading::Queue< T >::jobs_finished_condition [mutable, protected] |
std::queue<boost::shared_ptr<T> > vigir_footstep_planning::threading::Queue< T >::queued_jobs [protected] |
boost::condition_variable vigir_footstep_planning::threading::Queue< T >::queued_jobs_condition [mutable, protected] |
boost::mutex vigir_footstep_planning::threading::Queue< T >::queued_jobs_mutex [mutable, protected] |