#include <background_processing.h>
Public Types | |
enum | JobEvent { ADD, REMOVE, COMPLETE } |
typedef boost::function< void(JobEvent)> | JobUpdateCallback |
Public Member Functions | |
void | addJob (const boost::function< void()> &job, const std::string &name) |
BackgroundProcessing () | |
void | clear () |
std::size_t | getJobCount () const |
void | setJobUpdateEvent (const JobUpdateCallback &event) |
~BackgroundProcessing () | |
Private Member Functions | |
void | processingThread () |
Private Attributes | |
boost::mutex | action_lock_ |
std::deque< std::string > | action_names_ |
std::deque< boost::function < void()> > | actions_ |
boost::condition_variable | new_action_condition_ |
bool | processing_ |
boost::scoped_ptr< boost::thread > | processing_thread_ |
JobUpdateCallback | queue_change_event_ |
bool | run_processing_thread_ |
Definition at line 43 of file background_processing.h.
typedef boost::function<void(JobEvent)> moveit_rviz_plugin::BackgroundProcessing::JobUpdateCallback |
Definition at line 50 of file background_processing.h.
Definition at line 46 of file background_processing.h.
Definition at line 38 of file background_processing.cpp.
Definition at line 46 of file background_processing.cpp.
void moveit_rviz_plugin::BackgroundProcessing::addJob | ( | const boost::function< void()> & | job, |
const std::string & | name | ||
) |
Definition at line 94 of file background_processing.cpp.
void moveit_rviz_plugin::BackgroundProcessing::clear | ( | void | ) |
Definition at line 106 of file background_processing.cpp.
std::size_t moveit_rviz_plugin::BackgroundProcessing::getJobCount | ( | ) | const |
Definition at line 119 of file background_processing.cpp.
void moveit_rviz_plugin::BackgroundProcessing::processingThread | ( | ) | [private] |
Definition at line 53 of file background_processing.cpp.
void moveit_rviz_plugin::BackgroundProcessing::setJobUpdateEvent | ( | const JobUpdateCallback & | event | ) |
Definition at line 125 of file background_processing.cpp.
boost::mutex moveit_rviz_plugin::BackgroundProcessing::action_lock_ [mutable, private] |
Definition at line 66 of file background_processing.h.
std::deque<std::string> moveit_rviz_plugin::BackgroundProcessing::action_names_ [private] |
Definition at line 69 of file background_processing.h.
std::deque<boost::function<void()> > moveit_rviz_plugin::BackgroundProcessing::actions_ [private] |
Definition at line 68 of file background_processing.h.
boost::condition_variable moveit_rviz_plugin::BackgroundProcessing::new_action_condition_ [private] |
Definition at line 67 of file background_processing.h.
bool moveit_rviz_plugin::BackgroundProcessing::processing_ [private] |
Definition at line 73 of file background_processing.h.
boost::scoped_ptr<boost::thread> moveit_rviz_plugin::BackgroundProcessing::processing_thread_ [private] |
Definition at line 63 of file background_processing.h.
Definition at line 71 of file background_processing.h.
Definition at line 64 of file background_processing.h.