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/idle.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/idle.hxx')
-rw-r--r-- | include/vcl/idle.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/vcl/idle.hxx b/include/vcl/idle.hxx index d746cf45e775..5460d3302635 100644 --- a/include/vcl/idle.hxx +++ b/include/vcl/idle.hxx @@ -39,7 +39,8 @@ public: void SetIdleHdl( const Link<Idle *, void>& rLink ) { maIdleHdl = rLink; } const Link<Idle *, void>& GetIdleHdl() const { return maIdleHdl; } virtual void Invoke() 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; Idle& operator=( const Idle& rIdle ); }; |