Scheduler: BUGFIX: Implement timeoutEarly() / timeoutAdjust()
g0dil [Thu, 19 Jun 2008 13:29:39 +0000 (13:29 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@880 270642c3-0616-0410-b53a-bc976706d245

Scheduler/Scheduler.cci
Scheduler/Scheduler.hh

index b638dcd..f436274 100644 (file)
@@ -55,6 +55,28 @@ prefix_ void senf::Scheduler::cancelTimeout(unsigned id)
         i->second.canceled = true;
 }
 
+prefix_ senf::ClockService::clock_type senf::Scheduler::timeoutEarly()
+    const
+{
+    return eventEarly_;
+}
+
+prefix_ void senf::Scheduler::timeoutEarly(ClockService::clock_type v)
+{
+    eventEarly_ = v;
+}
+
+prefix_ senf::ClockService::clock_type senf::Scheduler::timeoutAdjust()
+    const
+{
+    return eventAdjust_;
+}
+
+prefix_ void senf::Scheduler::timeoutAdjust(ClockService::clock_type v)
+{
+    eventAdjust_ = v;
+}
+
 prefix_ void senf::Scheduler::terminate()
 {
     terminate_ = true;
index 411890c..0d8a149 100644 (file)
@@ -284,7 +284,7 @@ namespace senf {
         void timeoutEarly(ClockService::clock_type v);
                                         ///< Set the \a timeoutEarly parameter
 
-        ClockService::clock_type timeoutAdjust() const;\
+        ClockService::clock_type timeoutAdjust() const;
                                         ///< Fetch the \a timeoutAdjust parameter
         void timeoutAdjust(ClockService::clock_type v);
                                         ///< Set the \a timeoutAdjust parameter