vcl/unx/gtk3/gtk3gtkdata.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit cbda84e5422c066b93d8c06b49c6bc86eca7c71f
Author: dilekuzulmez <dilekuzul...@gmail.com>
Date:   Sun Apr 16 15:56:43 2017 +0300

    tdf#84323: Make osl::Condition::wait more readable
    
    Change-Id: I9fabc88aac40f4c14bc6fe5b26d4a49de33aef75
    Reviewed-on: https://gerrit.libreoffice.org/36576
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Michael Stahl <mst...@redhat.com>

diff --git a/vcl/unx/gtk3/gtk3gtkdata.cxx b/vcl/unx/gtk3/gtk3gtkdata.cxx
index 40d46705a9a5..18327a484081 100644
--- a/vcl/unx/gtk3/gtk3gtkdata.cxx
+++ b/vcl/unx/gtk3/gtk3gtkdata.cxx
@@ -52,6 +52,7 @@
 #endif
 
 #include <cppuhelper/exc_hlp.hxx>
+#include <chrono>
 
 using namespace vcl_sal;
 
@@ -472,8 +473,7 @@ SalYieldResult GtkData::Yield( bool bWait, bool 
bHandleAllCurrentEvents )
              */
             // we are the dispatch thread
             m_aDispatchCondition.reset();
-            TimeValue aValue = { 1, 0 };
-            m_aDispatchCondition.wait(&aValue);
+            m_aDispatchCondition.wait(std::chrono::seconds(1));
         }
     }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to