From 5bbaa27251336638593781c33e1ac439e943414b Mon Sep 17 00:00:00 2001 From: Mikael Simberg Date: Mon, 24 Jan 2022 15:31:46 +0100 Subject: [PATCH] Replace pika::this_thread::sleep_for with std::this_thread::sleep_for --- test/unit/common/test_pipeline.cpp | 2 +- test/unit/matrix/test_matrix.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/common/test_pipeline.cpp b/test/unit/common/test_pipeline.cpp index 21f726f515..59011f0cdb 100644 --- a/test/unit/common/test_pipeline.cpp +++ b/test/unit/common/test_pipeline.cpp @@ -70,7 +70,7 @@ auto try_waiting_guard = [](auto& guard) { const auto wait_guard = 20ms; for (int i = 0; i < 100 && !guard; ++i) - pika::this_thread::sleep_for(wait_guard); + std::this_thread::sleep_for(wait_guard); }; TEST(PipelineDestructor, DestructionWithDependency) { diff --git a/test/unit/matrix/test_matrix.cpp b/test/unit/matrix/test_matrix.cpp index 229cb97d76..e0a8da6b58 100644 --- a/test/unit/matrix/test_matrix.cpp +++ b/test/unit/matrix/test_matrix.cpp @@ -1246,7 +1246,7 @@ auto try_waiting_guard = [](auto& guard) { const auto wait_guard = 20ms; for (int i = 0; i < 100 && !guard; ++i) - pika::this_thread::sleep_for(wait_guard); + std::this_thread::sleep_for(wait_guard); }; // Create a single-element matrix @@ -1393,7 +1393,7 @@ TEST_F(MatrixGenericTest, SyncBarrier) { // start a task (if it has at least a local part...otherwise there is no tile to work on) if (has_local) matrix.read(tile_tl).then(pika::launch::async, [&guard](auto&&) { - pika::this_thread::sleep_for(100ms); + std::this_thread::sleep_for(100ms); guard = true; });