28 #ifndef ROSCPP_POLL_MANAGER_H 29 #define ROSCPP_POLL_MANAGER_H 35 #include <boost/signals2.hpp> 37 #include <boost/thread/recursive_mutex.hpp> 38 #include <boost/thread/thread.hpp> 51 static const PollManagerPtr& instance();
58 boost::signals2::connection addPollThreadListener(
const VoidFunc& func);
59 void removePollThreadListener(boost::signals2::connection c);
boost::recursive_mutex signal_mutex_
ROSCPP_DECL void start()
Actually starts the internals of the node (spins up threads, starts the network polling and xmlrpc lo...
boost::function< void(void)> VoidFunc
Manages a set of sockets being polled through the poll() function call.
void threadFunc(boost::barrier *b)
ROSCPP_DECL void shutdown()
Disconnects everything and unregisters from the master. It is generally not necessary to call this fu...
volatile bool shutting_down_
boost::signals2::signal< void(void)> VoidSignal
boost::shared_ptr< PollManager > PollManagerPtr