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-26 22:17:33 +0000 |
commit | 695bb66fa3b594d29f8aa9d880212df5588cfb91 (patch) | |
tree | 92ab236e9d2c152afdc9533fe4004627ab1723e0 /include/vcl/idle.hxx | |
parent | 0b533c23ef71d77fb5112769908fa9f39d5f552d (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 ); }; |