X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FScheduler.hh;h=3ec8147a2d818531f1f2ceb65ed13e6bd0845c54;hb=f87667d7d3b3edafba7e67d6fc33168c4e1af620;hp=3f6550cf580aad2f8b123131c5659201c3401b4e;hpb=3d16600678b948ff3bd0e4fd2a1a800fcc629a03;p=senf.git diff --git a/Scheduler/Scheduler.hh b/Scheduler/Scheduler.hh index 3f6550c..3ec8147 100644 --- a/Scheduler/Scheduler.hh +++ b/Scheduler/Scheduler.hh @@ -151,9 +151,7 @@ namespace senf { ///< Add timeout event /**< \param[in] timeout timeout in nanoseconds \param[in] cb callback to call after \a timeout - milliseconds - \todo Return some kind of handle/pointer and add - support to update or revoke a timeout */ + milliseconds */ void cancelTimeout(unsigned id); @@ -175,8 +173,6 @@ namespace senf { private: typedef boost::function SimpleCallback; - static unsigned const MinTimeout = 1000; - Scheduler(); void do_add(int fd, SimpleCallback const & cb, int eventMask = EV_ALL); @@ -211,7 +207,7 @@ namespace senf { }; typedef std::map FdTable; - typedef std::map TimerMap; + typedef std::map TimerMap; // sorted by id struct TimerSpecCompare { @@ -223,7 +219,7 @@ namespace senf { }; typedef std::priority_queue, - TimerSpecCompare> TimerQueue; + TimerSpecCompare> TimerQueue; // sorted by time FdTable fdTable_; unsigned timerIdCounter_;