[Libreoffice-commits] core.git: vcl/unx
dilekuzulmez
dilekuzulmez at gmail.com
Wed Apr 26 09:59:34 UTC 2017
vcl/unx/gtk3/gtk3gtkdata.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit cbda84e5422c066b93d8c06b49c6bc86eca7c71f
Author: dilekuzulmez <dilekuzulmez at 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 <ci at libreoffice.org>
Reviewed-by: Michael Stahl <mstahl at 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));
}
}
More information about the Libreoffice-commits
mailing list