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 --- cppu/source/threadpool/threadpool.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cppu/source/threadpool') diff --git a/cppu/source/threadpool/threadpool.cxx b/cppu/source/threadpool/threadpool.cxx index 9861d9739abe..457ff94a73ad 100644 --- a/cppu/source/threadpool/threadpool.cxx +++ b/cppu/source/threadpool/threadpool.cxx @@ -20,6 +20,7 @@ #include "sal/config.h" #include +#include #include #include @@ -148,8 +149,7 @@ namespace cppu_threadpool } // let the thread wait 2 seconds - TimeValue time = { 2 , 0 }; - waitingThread.condition.wait( &time ); + waitingThread.condition.wait( std::chrono::seconds(2) ); { MutexGuard guard ( m_mutexWaitingThreadList ); -- cgit