X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FClockService.hh;h=da50573e35b335826ffc321999c7f0ba94fb4655;hb=c6811d4b2fdd60eb33af627ae287dd228f435d14;hp=3be5a0a3fe1f32b075aa8a23493fd244c140cf96;hpb=7a02284399aee1039c67aea3691b4899d8fa10d4;p=senf.git diff --git a/Scheduler/ClockService.hh b/Scheduler/ClockService.hh index 3be5a0a..da50573 100644 --- a/Scheduler/ClockService.hh +++ b/Scheduler/ClockService.hh @@ -114,15 +114,6 @@ namespace senf { */ typedef boost::posix_time::ptime abstime_type; - static unsigned const CheckInterval = 10; - - /////////////////////////////////////////////////////////////////////////// - ///\name Structors and default members - ///@{ - - ~ClockService(); - - ///@} /////////////////////////////////////////////////////////////////////////// static clock_type now(); ///< Return current clock value @@ -171,30 +162,16 @@ namespace senf { private: ClockService(); - void timer(); - - clock_type now_m(); abstime_type abstime_m(clock_type clock); clock_type clock_m(abstime_type time); - void restart_m(bool restart = true); - - bool checkSkew(boost::posix_time::ptime time); - void updateSkew(boost::posix_time::ptime time); - void clockSkew(boost::posix_time::ptime time, boost::posix_time::ptime expected); - - void restartTimer(bool restart = true); + void restart_m(); - boost::posix_time::ptime base_; - boost::posix_time::ptime heartbeat_; + boost::posix_time::ptime baseAbstime_; + clock_type baseClock_; - // I don't want this header to depend on the legacy C headers. /// Internal: ClockService private data (PIMPL idiom) - struct Impl; - boost::scoped_ptr impl_; - friend class Impl; #ifndef DOXYGEN - friend class senf::detail::ClockServiceTest; friend class singleton; #endif };