From: g0dil Date: Fri, 15 May 2009 13:19:22 +0000 (+0000) Subject: Scheduler: Add timeout() member to TimerEvent X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=e0a922ad6bffd3a527321131a906c701588d86f4;p=senf.git Scheduler: Add timeout() member to TimerEvent git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1204 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Scheduler/TimerEvent.cci b/Scheduler/TimerEvent.cci index bbdae19..ad671db 100644 --- a/Scheduler/TimerEvent.cci +++ b/Scheduler/TimerEvent.cci @@ -79,6 +79,12 @@ prefix_ void senf::scheduler::TimerEvent::timeout(ClockService::clock_type timeo enable(); } +prefix_ senf::ClockService::clock_type senf::scheduler::TimerEvent::timeout() + const +{ + return timeout_; +} + /////////////////////////////////////////////////////////////////////////// // senf::scheduler::detail::TimerDispatcher diff --git a/Scheduler/TimerEvent.hh b/Scheduler/TimerEvent.hh index 493ae6a..148fdcc 100644 --- a/Scheduler/TimerEvent.hh +++ b/Scheduler/TimerEvent.hh @@ -115,6 +115,7 @@ namespace scheduler { /**< \param[in] timeout new timeout time \param[in] initiallyEnabled if set \c false, do not enable callback automatically. */ + ClockService::clock_type timeout() const; private: virtual void v_run();