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 /ucb/source/ucp | |
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 'ucb/source/ucp')
-rw-r--r-- | ucb/source/ucp/webdav-curl/SerfLockStore.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ucb/source/ucp/webdav-curl/SerfLockStore.cxx b/ucb/source/ucp/webdav-curl/SerfLockStore.cxx index 005e7c5f10dd..6d7b89e9e687 100644 --- a/ucb/source/ucp/webdav-curl/SerfLockStore.cxx +++ b/ucb/source/ucp/webdav-curl/SerfLockStore.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <chrono> #include <rtl/ustring.hxx> #include <sal/log.hxx> #include <osl/time.h> @@ -24,6 +25,7 @@ #include <salhelper/thread.hxx> #include <com/sun/star/ucb/LockScope.hpp> +#include <thread> #include "CurlSession.hxx" #include "SerfLockStore.hxx" @@ -71,10 +73,7 @@ void TickerThread::execute() nCount = nNth; } - TimeValue aTV; - aTV.Seconds = 0; - aTV.Nanosec = 1000000000 / nNth; - salhelper::Thread::wait( aTV ); + std::this_thread::sleep_for( std::chrono::milliseconds(1000/25) ); } SAL_INFO("ucb.ucp.webdav", "TickerThread: stop." ); |