summaryrefslogtreecommitdiff
path: root/vcl/source/app/idle.cxx
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2017-01-25 15:53:15 +0100
committerJan-Marek Glogowski <glogow@fbihome.de>2017-07-13 12:10:23 +0200
commit917be98e3f277960635ac66bcea510c2454c80d6 (patch)
tree18def396ae400eb1151211c863d44be457a7831a /vcl/source/app/idle.cxx
parent23beae53b43484d82949019a3279362c7e1dfb4b (diff)
Round-robin invoked tasks
Add some round-robin to the task processing, so equal priority (auto) tasks won't always be scheduled, if there are multiple tasks with the same priority. Change-Id: Ice111aa5f85e9181b3ee9799ca4df0d58f210fe9
Diffstat (limited to 'vcl/source/app/idle.cxx')
-rw-r--r--vcl/source/app/idle.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/app/idle.cxx b/vcl/source/app/idle.cxx
index 18f12076710d..8038005a7d4f 100644
--- a/vcl/source/app/idle.cxx
+++ b/vcl/source/app/idle.cxx
@@ -67,4 +67,9 @@ sal_uInt64 Idle::UpdateMinPeriod( sal_uInt64 /* nMinPeriod */, sal_uInt64 /* nTi
return Scheduler::ImmediateTimeoutMs;
}
+AutoIdle::AutoIdle( const sal_Char *pDebugName )
+ : Idle( true, pDebugName )
+{
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */