Scheduler: Add timeout() member to TimerEvent
g0dil [Fri, 15 May 2009 13:19:22 +0000 (13:19 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1204 270642c3-0616-0410-b53a-bc976706d245

Scheduler/TimerEvent.cci
Scheduler/TimerEvent.hh

index bbdae19..ad671db 100644 (file)
@@ -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
 
index 493ae6a..148fdcc 100644 (file)
@@ -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();