framework/source/helper/wakeupthread.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit b954a2409bdae5b22e35c150ca035a3b3d43538f
Author:     Michael Meeks <michael.me...@collabora.com>
AuthorDate: Mon Aug 5 17:55:12 2024 +0100
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue Aug 6 21:48:54 2024 +0200

    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.gran...@collabora.co.uk>

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;
 

Reply via email to