From d0f44d8ba7e87aa263008d3cfc4e68294d783162 Mon Sep 17 00:00:00 2001 From: Kevin Dubrulle Date: Sat, 7 Jul 2018 13:34:20 +0200 Subject: tdf#84323 - sal - add sane sleep interface: cleanup osl_waitThread Replace osl_waitThread by osl::Thread::wait. Use std::chrono instead of TimeValue. Change-Id: I71691d014feeeb0c5d0ba29d048bda8e25e6e7dd Reviewed-on: https://gerrit.libreoffice.org/57130 Tested-by: Jenkins Reviewed-by: Noel Grandin --- package/source/zipapi/ZipOutputStream.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'package') diff --git a/package/source/zipapi/ZipOutputStream.cxx b/package/source/zipapi/ZipOutputStream.cxx index 94f8d024dd7c..c15fdaee48ef 100644 --- a/package/source/zipapi/ZipOutputStream.cxx +++ b/package/source/zipapi/ZipOutputStream.cxx @@ -154,8 +154,7 @@ void ZipOutputStream::reduceScheduledThreadsToGivenNumberOrLess(sal_Int32 nThrea if(static_cast< sal_Int32 >(m_aEntries.size()) > nThreads) { - const TimeValue aTimeValue(0, 100000); - osl_waitThread(&aTimeValue); + osl::Thread::wait(std::chrono::microseconds(100)); } } } -- cgit v1.2.3