diff options
author | Ashod Nakashian <ashodnakashian@yahoo.com> | 2015-07-19 19:40:18 -0400 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-09-04 18:43:41 +0000 |
commit | 6d64d2f38d9f6c2f54e05675ecd0709eabf6d8ca (patch) | |
tree | 24d40b7cf724ef0946418c748338287252c24c24 /include/vcl/timer.hxx | |
parent | 27949c810daa4090106cbed360f80869a4813d15 (diff) |
Minor refactoring and cleanup of Scheduler and Timer.
Members are now const-correct.
Replaced compile-time constants with enum.
Refactored common functions from Timer to Scheduler.
Disabled timer-precision unittests as they misfire often.
These changes are non-functional.
Change-Id: I6bb3d9fc402cadd556d9063ed9a4888f114c73d7
Reviewed-on: https://gerrit.libreoffice.org/17977
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'include/vcl/timer.hxx')
-rw-r--r-- | include/vcl/timer.hxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/vcl/timer.hxx b/include/vcl/timer.hxx index 8835291cac7e..220036b282a6 100644 --- a/include/vcl/timer.hxx +++ b/include/vcl/timer.hxx @@ -31,11 +31,8 @@ protected: bool mbAuto; virtual void SetDeletionFlags() SAL_OVERRIDE; - virtual bool ReadyForSchedule( bool bTimer ) SAL_OVERRIDE; - virtual sal_uInt64 UpdateMinPeriod( sal_uInt64 nMinPeriod, sal_uInt64 nTime ) SAL_OVERRIDE; - -private: - static void InitSystemTimer(); + virtual bool ReadyForSchedule( bool bTimer ) const SAL_OVERRIDE; + virtual sal_uInt64 UpdateMinPeriod( sal_uInt64 nMinPeriod, sal_uInt64 nTime ) const SAL_OVERRIDE; public: Timer( const sal_Char *pDebugName = NULL ); @@ -51,7 +48,6 @@ public: void Timeout() { Invoke(); } Timer& operator=( const Timer& rTimer ); virtual void Start() SAL_OVERRIDE; - static void ImplStartTimer( ImplSVData* pSVData, sal_uInt64 nMS ); }; /// An auto-timer is a multi-shot timer re-emitting itself at |