vcl/unx/gtk/gtkdata.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 8468945322b72ddadbe42584b9bba395c1e5bb7e Author: dilekuzulmez <dilekuzul...@gmail.com> Date: Sat Apr 15 16:35:18 2017 +0300 tdf#84323: Make osl::Condition::wait more readable Change-Id: Icb7d1fc92296dddb2a5f3c1517af0ce237e0f8a0 Reviewed-on: https://gerrit.libreoffice.org/36567 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Michael Stahl <mst...@redhat.com> diff --git a/vcl/unx/gtk/gtkdata.cxx b/vcl/unx/gtk/gtkdata.cxx index 966d0b779c9d..70e790443b29 100644 --- a/vcl/unx/gtk/gtkdata.cxx +++ b/vcl/unx/gtk/gtkdata.cxx @@ -46,6 +46,7 @@ #include "unx/x11_cursors/salcursors.h" #include <vcl/svapp.hxx> +#include <chrono> using namespace vcl_sal; @@ -502,8 +503,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