7 #include <msp/time/timedelta.h>
24 inline PollEvent operator|(PollEvent e, PollEvent f)
25 { return PollEvent(static_cast<int>(e)|static_cast<int>(f)); }
27 inline PollEvent operator&(PollEvent e, PollEvent f)
28 { return PollEvent(static_cast<int>(e)&static_cast<int>(f)); }
30 inline PollEvent operator~(PollEvent e)
31 { return PollEvent(~static_cast<int>(e)); }
42 Slot(EventObject *o, PollEvent e): object(o), events(e) { }
45 typedef std::list<Slot> SlotList;
47 typedef std::map<EventObject *, PollEvent> EventMap;
60 void set_object(EventObject &, PollEvent);
62 int poll(const Time::TimeDelta &);
66 void platform_poll(int);
68 const SlotList &get_result() const { return poll_result; }
71 PollEvent poll(EventObject &, PollEvent);
72 PollEvent poll(EventObject &, PollEvent, const Time::TimeDelta &);