diff options
author | dilekuzulmez <dilekuzulmez@gmail.com> | 2017-04-16 15:56:43 +0300 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-04-26 11:59:06 +0200 |
commit | cbda84e5422c066b93d8c06b49c6bc86eca7c71f (patch) | |
tree | e4ba589a28775960ef7d0e445f2e2158f2bcf3c7 | |
parent | d23af0cd71c655325f1b7821ebe1ca34cc34afff (diff) |
tdf#84323: Make osl::Condition::wait more readable
Change-Id: I9fabc88aac40f4c14bc6fe5b26d4a49de33aef75
Reviewed-on: https://gerrit.libreoffice.org/36576
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkdata.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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)); } } |