From 12fc1d5399a688a80eec2565a4b552377e428ab7 Mon Sep 17 00:00:00 2001 From: Fakabbir Amin Date: Fri, 17 Feb 2017 19:48:40 +0530 Subject: tdf#84323: Make osl::Condition::wait more readable Improved readability of calls to osl::Condition::wait. Change-Id: I69fb9815561013f1eb9fd4a649e32902e09473c6 Reviewed-on: https://gerrit.libreoffice.org/34399 Tested-by: Jenkins Reviewed-by: Noel Grandin --- configmgr/source/components.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'configmgr/source') diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx index 7fdb43a3497b..39783056aa2e 100644 --- a/configmgr/source/components.cxx +++ b/configmgr/source/components.cxx @@ -21,6 +21,7 @@ #include #include +#include #include #include #include @@ -178,8 +179,7 @@ Components::WriteThread::WriteThread( } void Components::WriteThread::execute() { - TimeValue t = { 1, 0 }; // 1 sec - delay_.wait(&t); // must not throw; result_error is harmless and ignored + delay_.wait(std::chrono::seconds(1)); // must not throw; result_error is harmless and ignored osl::MutexGuard g(*lock_); // must not throw try { try { -- cgit