From b190574b6a0de3e26c6338324f74440ec0505bfb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 26 Mar 2015 11:44:57 +0100 Subject: tdf#84323: Make osl::Thread::wait more readable Change-Id: I33eb6970050a103404344c7f16dd33349c154347 Reviewed-on: https://gerrit.libreoffice.org/15018 Reviewed-by: Stephan Bergmann Tested-by: Stephan Bergmann --- cppuhelper/source/bootstrap.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cppuhelper') diff --git a/cppuhelper/source/bootstrap.cxx b/cppuhelper/source/bootstrap.cxx index 34dd060febfc..8d381c091337 100644 --- a/cppuhelper/source/bootstrap.cxx +++ b/cppuhelper/source/bootstrap.cxx @@ -19,6 +19,7 @@ #include +#include #include #include @@ -211,8 +212,7 @@ Reference< XComponentContext > SAL_CALL bootstrap() catch ( connection::NoConnectException & ) { // wait 500 ms, then try to connect again - TimeValue tv = { 0 /* secs */, 500000000 /* nanosecs */ }; - ::osl::Thread::wait( tv ); + ::osl::Thread::wait( std::chrono::milliseconds(500) ); } } } -- cgit