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 /slideshow | |
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 'slideshow')
-rw-r--r-- | slideshow/source/engine/slideshowimpl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx index 264a4dee8217..923ea26d0bc0 100644 --- a/slideshow/source/engine/slideshowimpl.cxx +++ b/slideshow/source/engine/slideshowimpl.cxx @@ -82,6 +82,7 @@ #include "pointersymbol.hxx" #include <map> +#include <thread> #include <utility> #include <vector> #include <algorithm> @@ -2416,7 +2417,7 @@ void FrameSynchronization::Synchronize() // Try to sleep most of it. int remainingMilliseconds = remainingTime * 1000; if(remainingMilliseconds > 2) - osl::Thread::wait(std::chrono::milliseconds(remainingMilliseconds - 2)); + std::this_thread::sleep_for(std::chrono::milliseconds(remainingMilliseconds - 2)); } } |