35 #ifndef ROSCPP_POLL_SET_H 36 #define ROSCPP_POLL_SET_H 41 #include <boost/shared_ptr.hpp> 42 #include <boost/function.hpp> 43 #include <boost/thread/mutex.hpp> 73 bool addSocket(
int sock,
const SocketUpdateFunc& update_func,
const TransportPtr& transport =
TransportPtr());
80 bool delSocket(
int sock);
89 bool addEvents(
int sock,
int events);
97 bool delEvents(
int sock,
int events);
111 void update(
int poll_timeout);
123 void createNativePollset();
128 void onLocalPipeEvents(
int events);
156 #endif // ROSCPP_POLL_SET_H boost::mutex signal_mutex_
Manages a set of sockets being polled through the poll() function call.
boost::shared_ptr< Transport > TransportPtr
M_SocketInfo socket_info_
void update(const std::string &key, const XmlRpc::XmlRpcValue &v)
std::map< int, SocketInfo > M_SocketInfo
boost::function< void(int)> SocketUpdateFunc
boost::mutex just_deleted_mutex_
boost::mutex socket_info_mutex_
std::vector< socket_pollfd > ufds_