summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2017-01-29 01:27:17 +0100
committerJan-Marek Glogowski <glogow@fbihome.de>2017-07-13 12:10:20 +0200
commitd72aad218c9737fb19d1a835b03c13b7107a96c0 (patch)
treec77c9ad4ee2a576b6bd5474d12259608a1d0196e /vcl/inc
parentc0710abfebd320903a3edb23d4b1441ea351b0be (diff)
Refactor Scheduler global data
Move all Scheduler members of ImplSVData into ImplSchedulerContext and make ImplSchedulerContext a member of ImplSVData. Change-Id: I186bebdfb5701543595848968235b5a56b6598e9
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/svdata.hxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/vcl/inc/svdata.hxx b/vcl/inc/svdata.hxx
index 088dc5c0e0cc..4f20812a3a07 100644
--- a/vcl/inc/svdata.hxx
+++ b/vcl/inc/svdata.hxx
@@ -317,6 +317,13 @@ struct BlendFrameCache
}
};
+struct ImplSchedulerContext
+{
+ ImplSchedulerData* mpFirstSchedulerData = nullptr; ///< list of all active tasks
+ SalTimer* mpSalTimer = nullptr; ///< interface to sal event loop / system timer
+ sal_uInt64 mnTimerPeriod = 0; ///< current timer period
+};
+
struct ImplSVData
{
~ImplSVData();
@@ -325,12 +332,10 @@ struct ImplSVData
Application* mpApp = nullptr; // pApp
VclPtr<WorkWindow> mpDefaultWin; // Default-Window
bool mbDeInit = false; // Is VCL deinitializing
- ImplSchedulerData* mpFirstSchedulerData = nullptr; // list of all running tasks
- SalTimer* mpSalTimer = nullptr; // interface to sal event loop/timers
SalI18NImeStatus* mpImeStatus = nullptr; // interface to ime status window
SalSystem* mpSalSystem = nullptr; // SalSystem interface
ResMgr* mpResMgr = nullptr; // SV-Resource-Manager
- sal_uInt64 mnTimerPeriod = 0; // current timer period
+ ImplSchedulerContext maSchedCtx; // indepen data for class Scheduler
ImplSVAppData maAppData; // indepen data for class Application
ImplSVGDIData maGDIData; // indepen data for Output classes
ImplSVWinData maWinData; // indepen data for Windows classes