diff options
author | László Németh <nemeth@numbertext.org> | 2014-11-05 17:57:15 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-11-05 20:59:45 +0000 |
commit | a74cb8c392a057899c8aafa74c90664b4f6270b9 (patch) | |
tree | de52c7f6e2e68f8f164b49c31151a577cfff8f95 /include | |
parent | edabf0c5c1e7a74262e4e4e04da9760ede15f86d (diff) |
idle: implement ProcessAllIdleHandlers.
It is often useful to flush all pending idle / GUI work for testing
and/or profiling - so make that easy to do with this new method.
Also tag idle Timers with a boolean, for ease of use.
Change-Id: I57e883be8fe8637b3715008e8074d0fa258ca0c3
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/timer.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/vcl/timer.hxx b/include/vcl/timer.hxx index 10dd3fca730f..11e8f3fa875d 100644 --- a/include/vcl/timer.hxx +++ b/include/vcl/timer.hxx @@ -35,8 +35,11 @@ protected: sal_uLong mnTimeout; bool mbActive; bool mbAuto; + bool mbIdle; Link maTimeoutHdl; + friend struct ImplTimerData; + public: Timer(); Timer( const Timer& rTimer ); @@ -60,6 +63,9 @@ public: static void ImplDeInitTimer(); static void ImplTimerCallbackProc(); + + /// Process all pending idle tasks ahead of time in priority order. + static void ProcessAllIdleHandlers(); }; /// An auto-timer is a multi-shot timer re-emitting itself at |