X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FScheduler.hh;h=6788f61aa283127a1d638c69bd5fdb91e6f4661d;hb=be850b3a668390421f62baf542c2a7b7e984386f;hp=a535fad11610748518a2ca4f71590c6a7da92a6c;hpb=2654c3b13a187f38dc026e04c76ea5c885b34787;p=senf.git diff --git a/Scheduler/Scheduler.hh b/Scheduler/Scheduler.hh index a535fad..6788f61 100644 --- a/Scheduler/Scheduler.hh +++ b/Scheduler/Scheduler.hh @@ -20,6 +20,8 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// TODO: Fix EventId parameter (probably to int) to allow |-ing without casting ... + #ifndef HH_Scheduler_ #define HH_Scheduler_ 1 @@ -83,9 +85,9 @@ namespace lib { template void add(Handle const & handle, typename GenericCallback::Callback const & cb, - EventId eventMask = EV_ALL); + int eventMask = EV_ALL); template - void remove(Handle const & handle, EventId eventMask = EV_ALL); + void remove(Handle const & handle, int eventMask = EV_ALL); void timeout(unsigned long timeout, TimerCallback const & cb); @@ -97,8 +99,8 @@ namespace lib { private: Scheduler(); - void do_add(int fd, SimpleCallback const & cb, EventId eventMask = EV_ALL); - void do_remove(int fd, EventId eventMask = EV_ALL); + void do_add(int fd, SimpleCallback const & cb, int eventMask = EV_ALL); + void do_remove(int fd, int eventMask = EV_ALL); struct EventSpec {