Kaydet (Commit) cbda84e5 authored tarafından dilekuzulmez's avatar dilekuzulmez Kaydeden (comit) Michael Stahl

tdf#84323: Make osl::Condition::wait more readable

Change-Id: I9fabc88aac40f4c14bc6fe5b26d4a49de33aef75
Reviewed-on: https://gerrit.libreoffice.org/36576Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst d23af0cd
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
#endif #endif
#include <cppuhelper/exc_hlp.hxx> #include <cppuhelper/exc_hlp.hxx>
#include <chrono>
using namespace vcl_sal; using namespace vcl_sal;
...@@ -472,8 +473,7 @@ SalYieldResult GtkData::Yield( bool bWait, bool bHandleAllCurrentEvents ) ...@@ -472,8 +473,7 @@ SalYieldResult GtkData::Yield( bool bWait, bool bHandleAllCurrentEvents )
*/ */
// we are the dispatch thread // we are the dispatch thread
m_aDispatchCondition.reset(); m_aDispatchCondition.reset();
TimeValue aValue = { 1, 0 }; m_aDispatchCondition.wait(std::chrono::seconds(1));
m_aDispatchCondition.wait(&aValue);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment