From d27e3eca2cca1249a0bdd9e6385ca693d471ef9b Mon Sep 17 00:00:00 2001 From: Gurkaran Date: Tue, 22 Mar 2016 03:25:36 +0530 Subject: tdf#84323: Make osl::Condition::wait more readable It is to improve the readability of calls to osl::Condition::wait. Change-Id: I5945343c5a7e4729ab599380414d18280bd176fe Signed-off-by: Gurkaran Reviewed-on: https://gerrit.libreoffice.org/23417 Tested-by: Jenkins Reviewed-by: Noel Grandin --- smoketest/smoketest.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'smoketest/smoketest.cxx') diff --git a/smoketest/smoketest.cxx b/smoketest/smoketest.cxx index c4c2178066e1..6bc2a9c531e6 100644 --- a/smoketest/smoketest.cxx +++ b/smoketest/smoketest.cxx @@ -18,6 +18,7 @@ */ #include +#include #include "boost/noncopyable.hpp" #include "com/sun/star/awt/AsyncCallback.hpp" #include "com/sun/star/awt/XCallback.hpp" @@ -177,8 +178,7 @@ void Test::test() { css::uno::Any()); // Wait for result.condition or connection_ going stale: for (;;) { - TimeValue delay = { 1, 0 }; // 1 sec - osl::Condition::Result res = result.condition.wait(&delay); + osl::Condition::Result res = result.condition.wait(std::chrono::seconds(1)); // 1 sec delay if (res == osl::Condition::result_ok) { break; } -- cgit