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 /vcl/unx | |
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 'vcl/unx')
-rw-r--r-- | vcl/unx/generic/dtrans/X11_selection.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/unx/generic/dtrans/X11_selection.cxx b/vcl/unx/generic/dtrans/X11_selection.cxx index 175da5308e08..3547ef2b7226 100644 --- a/vcl/unx/generic/dtrans/X11_selection.cxx +++ b/vcl/unx/generic/dtrans/X11_selection.cxx @@ -21,6 +21,7 @@ #include <sal/log.hxx> #include <cstdlib> +#include <thread> #include <unx/saldisp.hxx> @@ -946,7 +947,7 @@ bool SelectionManager::getPasteData( Atom selection, Atom type, Sequence< sal_In else { aGuard.clear(); - osl::Thread::wait(std::chrono::milliseconds(100)); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); aGuard.reset(); } if( bHandle ) @@ -3501,7 +3502,7 @@ void SelectionManager::dragDoDispatch() { // let the thread in the run method do the dispatching // just look occasionally here whether drop timed out or is completed - osl::Thread::wait(std::chrono::milliseconds(200)); + std::this_thread::sleep_for(std::chrono::milliseconds(200)); } #if OSL_DEBUG_LEVEL > 1 SAL_INFO("vcl.unx.dtrans", "end executeDrag dispatching."); |