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>
This commit is contained in:
Arnaud VERSINI
2023-01-09 08:37:35 +00:00
committed by Stephan Bergmann
parent 42d9077fc4
commit 555f433318
13 changed files with 33 additions and 30 deletions
+2 -1
View File
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <thread>
#include <utility>
#include <cppu/unotype.hxx>
@@ -512,7 +513,7 @@ namespace {
void wait(sal_Int32 microSeconds) {
OSL_ASSERT(microSeconds >= 0 && microSeconds <= SAL_MAX_INT32 / 1000);
osl::Thread::wait(std::chrono::microseconds(microSeconds));
std::this_thread::sleep_for(std::chrono::microseconds(microSeconds));
}
}