diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2016-03-11 15:29:12 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2016-03-15 09:35:11 +0000 |
commit | 255db21584a24e9e66907b12eb60fba46b527102 (patch) | |
tree | f9d28f8c52f97dcb4c435f8e7d55636a7b94ff7c /vcl/source | |
parent | bf75c47b284f73165aa815ec96cef627c31ea0ab (diff) |
vcl: yield more cleanly and do less work for now.
Change-Id: Ia3469fe4eb53f73fc85ee3c62db1411f9f4d1fb8
Reviewed-on: https://gerrit.libreoffice.org/23250
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/app/svapp.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index a75a6db2f3bf..a18b91eef04d 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -534,9 +534,8 @@ void Application::Reschedule( bool i_bAllEvents ) void Scheduler::ProcessEventsToIdle() { - int nSanity = 1000; - while(Scheduler::ProcessTaskScheduling(false) || - ImplYield(false, false, 0)) + int nSanity = 100; + while(ImplYield(false, true, 0)) { if (nSanity-- < 0) { |