summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordilekuzulmez <dilekuzulmez@gmail.com>2017-04-15 16:35:18 +0300
committerMichael Stahl <mstahl@redhat.com>2017-04-26 11:39:10 +0200
commit8468945322b72ddadbe42584b9bba395c1e5bb7e (patch)
tree46c27325d7c909c4e013b3ce834c80d12dda231f
parentb4f341389ce7fa889e8a668be0233d1dbbd814c2 (diff)
tdf#84323: Make osl::Condition::wait more readable
Change-Id: Icb7d1fc92296dddb2a5f3c1517af0ce237e0f8a0 Reviewed-on: https://gerrit.libreoffice.org/36567 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--vcl/unx/gtk/gtkdata.cxx4
1 files changed, 2 insertions, 2 deletions
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) );
}
}