summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2017-01-25 15:49:44 +0100
committerJan-Marek Glogowski <glogow@fbihome.de>2017-07-13 12:10:22 +0200
commitb22526b8ad88f5061b1901914e280ba9c8db1fe7 (patch)
treed91c6d8845e2e37f5c822037cd66edfc441413ab /include
parentd93acb77667ecdb78b53a1be626ca2e000813828 (diff)
Introduce a scheduler stack
While the stack removes all invoked tasks from the queue, which actively removes it from scheduling, it also helps to faster handle nested calls, as we don't have to look for the previous position to move the task to the end of the queue for the round robin. Change-Id: I358cf2492e9630f67685a2b780509edb56691830
Diffstat (limited to 'include')
-rw-r--r--include/vcl/scheduler.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/vcl/scheduler.hxx b/include/vcl/scheduler.hxx
index f5edb214349a..b1c59dc0a6f5 100644
--- a/include/vcl/scheduler.hxx
+++ b/include/vcl/scheduler.hxx
@@ -38,6 +38,10 @@ class VCL_DLLPUBLIC Scheduler final
static inline void UpdateMinPeriod( ImplSchedulerData *pSchedulerData,
sal_uInt64 nTime, sal_uInt64 &nMinPeriod );
+ static inline void UpdateSystemTimer( ImplSchedulerContext &rSchedCtx,
+ sal_uInt64 nMinPeriod,
+ bool bForce, sal_uInt64 nTime );
+
static void ImplStartTimer ( sal_uInt64 nMS, bool bForce, sal_uInt64 nTime );
public: