summaryrefslogtreecommitdiff
path: root/testtools
diff options
context:
space:
mode:
authorArnaud VERSINI <arnaud.versini@libreoffice.org>2022-11-06 17:04:20 +0100
committerStephan Bergmann <sbergman@redhat.com>2023-01-09 08:37:35 +0000
commit555f4333182abd0ca4aa06b354763f6dfbc3eb20 (patch)
tree6f7e2ad77cd297782b8b91ad95f44ce78fc2c130 /testtools
parent42d9077fc4ffc35d769412a979d91e836adb2536 (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 'testtools')
-rw-r--r--testtools/source/bridgetest/cppobj.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/testtools/source/bridgetest/cppobj.cxx b/testtools/source/bridgetest/cppobj.cxx
index 13eb1e6440aa..32742110f341 100644
--- a/testtools/source/bridgetest/cppobj.cxx
+++ b/testtools/source/bridgetest/cppobj.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <thread>
#include <utility>
#include <cppu/unotype.hxx>
@@ -512,7 +513,7 @@ namespace {
void wait(sal_Int32 microSeconds) {
OSL_ASSERT(microSeconds >= 0 && microSeconds <= SAL_MAX_INT32 / 1000);
- osl::Thread::wait(std::chrono::microseconds(microSeconds));
+ std::this_thread::sleep_for(std::chrono::microseconds(microSeconds));
}
}