diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2024-08-05 17:55:12 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-08-06 21:48:54 +0200 |
commit | b954a2409bdae5b22e35c150ca035a3b3d43538f (patch) | |
tree | 74ac23fe1c81b8c3532e984212c039c2ee4f54eb | |
parent | ad24ca100f0785f1ff638a2e06e72784bf3c4151 (diff) |
Avoid excessive progress updates unconditionally.
This may make short lived progress bars somewhat more 'blocky' and less
smooth - but inevitably make loading faster, particularly for loaded
machines with ultra-beautiful, slow to render themed progress-bars.
Change-Id: I5a7e43690f5e7eff35c980cae4991376204eb5fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171503
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | framework/source/helper/wakeupthread.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/framework/source/helper/wakeupthread.cxx b/framework/source/helper/wakeupthread.cxx index d30742758a89..b1a9b81cb12d 100644 --- a/framework/source/helper/wakeupthread.cxx +++ b/framework/source/helper/wakeupthread.cxx @@ -24,7 +24,6 @@ #include <rtl/ref.hxx> #include <osl/thread.hxx> #include <salhelper/thread.hxx> -#include <comphelper/lok.hxx> #include <condition_variable> #include <chrono> #include <vector> @@ -63,11 +62,10 @@ public: void execute() override { - bool bLOK = comphelper::LibreOfficeKit::isActive(); while (true) { std::unique_lock g(getMutex()); - condition.wait_for(g, bLOK ? 200ms : 25ms, [this] { return terminate; }); + condition.wait_for(g, 200ms, [this] { return terminate; }); if (terminate || updatables.empty()) break; |