diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-01-04 12:06:42 +0100 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-01-17 16:08:47 +0100 |
commit | fdc612619c1c133353026166206cea18c48089a6 (patch) | |
tree | 900ab53bc8d88ed4ab4b375e8a80136401bc3145 /vcl/inc | |
parent | 17bb38262471cf68167fa11ad875c2785f43a341 (diff) |
Refactor Scheduler to add Task class
Moves all the "task-specific" stuff into a Task class and just
keeps the "real" static Scheduler functions in the original
Scheduler class.
Change-Id: I9eb02d46e2bcf1abb06af5bab1fa0ee734d1984c
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/saltimer.hxx | 11 | ||||
-rw-r--r-- | vcl/inc/svdata.hxx | 2 |
2 files changed, 6 insertions, 7 deletions
diff --git a/vcl/inc/saltimer.hxx b/vcl/inc/saltimer.hxx index c2e2c2300f30..4d8541801ef2 100644 --- a/vcl/inc/saltimer.hxx +++ b/vcl/inc/saltimer.hxx @@ -56,21 +56,20 @@ public: } }; -class Scheduler; +class Task; // Internal scheduler record holding intrusive linked list pieces struct ImplSchedulerData { - ImplSchedulerData* mpNext; // Pointer to the next element in list - Scheduler* mpScheduler; // Pointer to VCL Scheduler instance - bool mbDelete; // Destroy this scheduler? - bool mbInScheduler; // Scheduler currently processed? + ImplSchedulerData *mpNext; // Pointer to the next element in list + Task *mpTask; // Pointer to VCL Task instance + bool mbDelete; // Destroy this task? + bool mbInScheduler; // Task currently processed? sal_uInt64 mnUpdateTime; // Last Update Time void Invoke(); const char *GetDebugName() const; - static ImplSchedulerData *GetMostImportantTask( bool bIdle, sal_uInt64 nTimeNow ); }; #endif // INCLUDED_VCL_INC_SALTIMER_HXX diff --git a/vcl/inc/svdata.hxx b/vcl/inc/svdata.hxx index 824daa8f35a0..e3afd5bf1a8d 100644 --- a/vcl/inc/svdata.hxx +++ b/vcl/inc/svdata.hxx @@ -24,7 +24,6 @@ #include <tools/fldunit.hxx> #include <unotools/options.hxx> -#include <vcl/idle.hxx> #include <vcl/svapp.hxx> #include <com/sun/star/lang/XComponent.hpp> @@ -46,6 +45,7 @@ struct ImplConfigData; class ImplDirectFontSubstitution; struct ImplHotKey; struct ImplEventHook; +struct ImplSchedulerData; class Point; class ResMgr; class ImplAccelManager; |