summaryrefslogtreecommitdiff
path: root/include/vcl/idle.hxx
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2016-09-06 08:27:08 +0000
committerJan-Marek Glogowski <glogow@fbihome.de>2017-01-17 16:08:46 +0100
commit9ec3b1e1bfd38a7a26b8f22024b0d62f771fd5a5 (patch)
treec922f7cbe0688763a4fc5b69312e2cef1b48c88d /include/vcl/idle.hxx
parent9e51007039770370182839846676b205f5c34c57 (diff)
Always schedule with the same time
No need to always update the time - scheduling should be fast! Change-Id: Ic4c01f5a5759ef4970f1385aab6ef93cd67f33b6
Diffstat (limited to 'include/vcl/idle.hxx')
-rw-r--r--include/vcl/idle.hxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/vcl/idle.hxx b/include/vcl/idle.hxx
index 5585d994b8b7..5a33e2e70ba9 100644
--- a/include/vcl/idle.hxx
+++ b/include/vcl/idle.hxx
@@ -27,6 +27,11 @@ class VCL_DLLPUBLIC Idle : public Scheduler
{
Link<Idle *, void> maIdleHdl; // Callback Link
+protected:
+ virtual bool ReadyForSchedule( bool bTimerOnly, sal_uInt64 nTimeNow ) const override;
+ virtual bool IsIdle() const override;
+ virtual sal_uInt64 UpdateMinPeriod( sal_uInt64 nMinPeriod, sal_uInt64 nTimeNow ) const override;
+
public:
Idle( const sal_Char *pDebugName = nullptr );
Idle( const Idle& rIdle );
@@ -38,9 +43,6 @@ 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 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 );
};