summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorArnaud VERSINI <arnaud.versini@libreoffice.org>2022-11-06 17:04:20 +0100
committerStephan Bergmann <sbergman@redhat.com>2023-01-09 08:37:35 +0000
commit555f4333182abd0ca4aa06b354763f6dfbc3eb20 (patch)
tree6f7e2ad77cd297782b8b91ad95f44ce78fc2c130 /stoc
parent42d9077fc4ffc35d769412a979d91e836adb2536 (diff)
use std::this_thread::sleep_for instead of osl equivalent
Change-Id: I5b4edc5417e5bb5e082688df616e1d5735717d92 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142357 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/javaloader/javaloader.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/stoc/source/javaloader/javaloader.cxx b/stoc/source/javaloader/javaloader.cxx
index f463e8791985..c8ad708ec676 100644
--- a/stoc/source/javaloader/javaloader.cxx
+++ b/stoc/source/javaloader/javaloader.cxx
@@ -46,7 +46,6 @@
#include <rtl/random.h>
#include <rtl/ustrbuf.hxx>
#include <osl/security.hxx>
-#include <osl/thread.hxx>
#include <cppuhelper/factory.hxx>
@@ -67,6 +66,8 @@
// this one is header-only
#include <comphelper/sequence.hxx>
+
+#include <thread>
#include <utility>
namespace com::sun::star::registry { class XRegistryKey; }
@@ -210,7 +211,7 @@ Reference<XComponentContext> raise_uno_process(
}
catch (const css::connection::NoConnectException &) {
if (i < 40) {
- ::osl::Thread::wait( std::chrono::milliseconds(500) );
+ std::this_thread::sleep_for( std::chrono::milliseconds(500) );
}
else throw;
}