17 #ifndef HH_SENF_Scheduler_Poller_ 18 #define HH_SENF_Scheduler_Poller_ 1 21 #include <sys/epoll.h> 22 #include <boost/noncopyable.hpp> 23 #include <boost/iterator/transform_iterator.hpp> 24 #include <boost/range/iterator_range.hpp> 41 template <
class Value>
47 typedef std::pair<int, Value*> result_type;
48 result_type operator()(epoll_event
const &)
const;
51 static int const NumEvents = 8;
58 typedef boost::transform_iterator<GetPollResult, epoll_event*>
iterator;
59 typedef boost::iterator_range<iterator>
range;
76 bool set(
int fd,
int events, Value *
data);
u8 data[SPECTRAL_HT20_NUM_BINS]
boost::iterator_range< iterator > range
int timeout() const
Current event timeout.
boost::transform_iterator< GetPollResult, epoll_event * > iterator
range wait()
Wait for one event.