diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-02-27 13:51:27 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-02-27 23:30:39 +0000 |
commit | 2d48c9dce371f9121c00f07ab3b977c1157f623a (patch) | |
tree | 76a6c59863d291ea195b14af4149550d02f53b0a /include | |
parent | 56dda82ff71c68f8bca1917fa6d642e26449a1d3 (diff) |
uitest: add scheduler method that runs until a signal is received
The other method only runs 1000 events.
Change-Id: I43076988e9e25b35e3fdfd8dff19270d9e066d9a
Reviewed-on: https://gerrit.libreoffice.org/34690
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/scheduler.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/vcl/scheduler.hxx b/include/vcl/scheduler.hxx index 19fbb4f8d5cf..d504e28309e4 100644 --- a/include/vcl/scheduler.hxx +++ b/include/vcl/scheduler.hxx @@ -44,8 +44,12 @@ public: static sal_uInt64 CalculateMinimumTimeout( bool &bHasActiveIdles ); /// Process one pending task ahead of time with highest priority. static bool ProcessTaskScheduling( bool bIdle ); - /// Process all events until we are idle + /** + * Process events until the parameter turns true, + * allows processing until a specific event has been processed + */ static void ProcessEventsToIdle(); + static void ProcessEventsToSignal(bool& bSignal); /// Control the deterministic mode. In this mode, two subsequent runs of /// LibreOffice fire about the same amount idles. |