summaryrefslogtreecommitdiff
path: root/package
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 /package
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 'package')
-rw-r--r--package/source/zipapi/ZipOutputStream.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/source/zipapi/ZipOutputStream.cxx b/package/source/zipapi/ZipOutputStream.cxx
index 9b582c4691e8..df21f1ffeb13 100644
--- a/package/source/zipapi/ZipOutputStream.cxx
+++ b/package/source/zipapi/ZipOutputStream.cxx
@@ -32,6 +32,8 @@
#include <ZipOutputEntry.hxx>
#include <ZipPackageStream.hxx>
+#include <thread>
+
using namespace com::sun::star;
using namespace com::sun::star::io;
using namespace com::sun::star::uno;
@@ -151,7 +153,7 @@ void ZipOutputStream::reduceScheduledThreadTasksToGivenNumberOrLess(std::size_t
if(m_aEntries.size() > nThreadTasks)
{
- osl::Thread::wait(std::chrono::microseconds(100));
+ std::this_thread::sleep_for(std::chrono::microseconds(100));
}
}
}