diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-11-25 21:33:15 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-11-25 23:22:06 +0000 |
commit | 10a451e97992ce42db3cefa3bffb883f310767c9 (patch) | |
tree | a7a599fcf9e63823e8847390f4cbd69240f7c67a /include/vcl/timer.hxx | |
parent | 9c554c2c8cbe7124b32dac7107b5d863feeaa483 (diff) |
vcl: don't treat non-ready timers as idle handlers.
Fixes the busy-loop - 100% CPU all the time.
Change-Id: I965f62d6a6f2ec1830c0897dd97179a739c70afc
Reviewed-on: https://gerrit.libreoffice.org/20186
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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/vcl/timer.hxx b/include/vcl/timer.hxx index 94a025ecd697..149ba9099ac9 100644 --- a/include/vcl/timer.hxx +++ b/include/vcl/timer.hxx @@ -31,7 +31,8 @@ protected: bool mbAuto; virtual void SetDeletionFlags() override; - virtual bool ReadyForSchedule( bool bTimer ) const override; + virtual bool ReadyForSchedule( bool bTimerOnly, sal_uInt64 nTimeNow ) const override; + virtual bool IsIdle() const override; virtual sal_uInt64 UpdateMinPeriod( sal_uInt64 nMinPeriod, sal_uInt64 nTime ) const override; public: |