From: g0dil Date: Thu, 19 Jun 2008 13:29:39 +0000 (+0000) Subject: Scheduler: BUGFIX: Implement timeoutEarly() / timeoutAdjust() X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=56cc32ae48cac37909d4a3019c2e7b1729fc3ccd;p=senf.git Scheduler: BUGFIX: Implement timeoutEarly() / timeoutAdjust() git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@880 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Scheduler/Scheduler.cci b/Scheduler/Scheduler.cci index b638dcd..f436274 100644 --- a/Scheduler/Scheduler.cci +++ b/Scheduler/Scheduler.cci @@ -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; diff --git a/Scheduler/Scheduler.hh b/Scheduler/Scheduler.hh index 411890c..0d8a149 100644 --- a/Scheduler/Scheduler.hh +++ b/Scheduler/Scheduler.hh @@ -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