summaryrefslogtreecommitdiff
path: root/vcl/CppunitTest_vcl_timer.mk
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2019-07-07 23:09:15 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2019-08-13 16:53:07 +0200
commit6e13585508ca3c9b66c6571ad1eb42bfcb66ef0b (patch)
treedf44551b7d3182036117c10ff694d1ae5905264f /vcl/CppunitTest_vcl_timer.mk
parent536ab2f3ba1e71badaaf98db9419ca7c7ddd7ac4 (diff)
Add a TaskStopwatch to interrupt idle loops
If we have multiple pending Idles, they will interrupt / starve each other, because there will be an instant pending timeout for the next Idle. This patch introduces a time slice to tasks, so long running events can use a TaskStopwatch to do the real interrupt after running out of their time slice. Apart from the time, this breaks when AnyInput is available, except for the timer event. This class just helps to track the time, as the scheduler is coop, not preemptive. Change-Id: I9d0b4a5aa388ebdf496b355d100152d890224524 Reviewed-on: https://gerrit.libreoffice.org/75568 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/CppunitTest_vcl_timer.mk')
-rw-r--r--vcl/CppunitTest_vcl_timer.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/CppunitTest_vcl_timer.mk b/vcl/CppunitTest_vcl_timer.mk
index b17bfc3a27f6..a89e4e070ec8 100644
--- a/vcl/CppunitTest_vcl_timer.mk
+++ b/vcl/CppunitTest_vcl_timer.mk
@@ -27,6 +27,7 @@ $(eval $(call gb_CppunitTest_use_libraries,vcl_timer, \
sal \
salhelper \
test \
+ tl \
unotest \
vcl \
))