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 /vcl/source/app | |
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 'vcl/source/app')
-rw-r--r-- | vcl/source/app/svapp.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index c2d0c8a2b904..6184596f8ad5 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -530,6 +530,14 @@ void Application::Reschedule( bool i_bAllEvents ) ImplYield(false, i_bAllEvents, 0); } +void Scheduler::ProcessEventsToSignal(bool& bSignal) +{ + while(!bSignal && (Scheduler::ProcessTaskScheduling( true ) || + ImplYield(false, false, 0))) + { + } +} + void Scheduler::ProcessEventsToIdle() { int nSanity = 1000; |