From 555f4333182abd0ca4aa06b354763f6dfbc3eb20 Mon Sep 17 00:00:00 2001 From: Arnaud VERSINI Date: Sun, 6 Nov 2022 17:04:20 +0100 Subject: 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 --- toolkit/source/awt/vclxtoolkit.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'toolkit') diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx index 7a3e3e7cfbcb..b361a20e3d3d 100644 --- a/toolkit/source/awt/vclxtoolkit.cxx +++ b/toolkit/source/awt/vclxtoolkit.cxx @@ -20,6 +20,7 @@ #include #include +#include #ifdef _WIN32 #include @@ -417,7 +418,7 @@ public: virtual void Invoke() override { SolarMutexGuard aSolarGuard; - osl::Thread::wait(std::chrono::milliseconds(m_nPauseMilliseconds)); + std::this_thread::sleep_for(std::chrono::milliseconds(m_nPauseMilliseconds)); Stop(); delete this; } -- cgit