X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FScheduler.hh;h=0d51c35b4b99e6818411ca97bc7bc56b36c5767d;hb=e879290346fe5242d7df2d70ee552d264081492f;hp=706ee5b216ba2d7c7c17a14251a02ee9aed8ece9;hpb=5b2e6f429a45b3bec23c52bd81a9726b9dbbcf68;p=senf.git diff --git a/Scheduler/Scheduler.hh b/Scheduler/Scheduler.hh index 706ee5b..0d51c35 100644 --- a/Scheduler/Scheduler.hh +++ b/Scheduler/Scheduler.hh @@ -160,6 +160,9 @@ namespace senf { \todo Fix the file support to use threads (?) fork (?) and a pipe so it works reliably even over e.g. NFS. + + \todo Add a check in the alarm callback which is already called every x seconds to check, + that a single callback is not blocking. */ class Scheduler : boost::noncopyable @@ -250,7 +253,8 @@ namespace senf { the Handle interface defined above. \param[in] cb callback \param[in] eventMask arbitrary combination via '|' - operator of EventId designators. */ + operator of \ref senf::Scheduler::EventId "EventId" + designators. */ template void remove(Handle const & handle, int eventMask = EV_ALL); ///< Remove event callback /**< remove() will remove any callback registered for any of @@ -259,8 +263,8 @@ namespace senf { \param[in] handle file descriptor or handle providing the Handle interface defined above. \param[in] eventMask arbitrary combination via '|' - operator of EventId designators. */ - + operator of \ref senf::Scheduler::EventId "EventId" + designators. */ ///\} ///\name Timeouts @@ -268,7 +272,8 @@ namespace senf { unsigned timeout(ClockService::clock_type timeout, SimpleCallback const & cb); ///< Add timeout event - /**< \param[in] timeout timeout in nanoseconds + /**< \returns timer id + \param[in] timeout timeout in nanoseconds \param[in] cb callback to call after \a timeout milliseconds */