diff options
author | Arnaud VERSINI <arnaud.versini@libreoffice.org> | 2022-11-06 17:04:20 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-01-09 08:37:35 +0000 |
commit | 555f4333182abd0ca4aa06b354763f6dfbc3eb20 (patch) | |
tree | 6f7e2ad77cd297782b8b91ad95f44ce78fc2c130 /toolkit | |
parent | 42d9077fc4ffc35d769412a979d91e836adb2536 (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 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxtoolkit.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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 <sal/config.h> #include <string_view> +#include <thread> #ifdef _WIN32 #include <prewin.h> @@ -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; } |