diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 11:44:57 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-17 15:37:22 +0000 |
commit | b190574b6a0de3e26c6338324f74440ec0505bfb (patch) | |
tree | 04ce4fa3231bf32e7bbf7b2fe51409e5113d25ea /cppuhelper | |
parent | 3c2b80066bf2fba4e7222fb7d30ac7d412539818 (diff) |
tdf#84323: Make osl::Thread::wait more readable
Change-Id: I33eb6970050a103404344c7f16dd33349c154347
Reviewed-on: https://gerrit.libreoffice.org/15018
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/bootstrap.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 <sal/config.h> +#include <chrono> #include <cstring> #include <rtl/process.h> @@ -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) ); } } } |