Skip to content

Commit

Permalink
Replace pika::this_thread::sleep_for with std::this_thread::sleep_for
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikael Simberg committed Jan 24, 2022
1 parent 5092573 commit 5bbaa27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/unit/common/test_pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions test/unit/matrix/test_matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
});

Expand Down

0 comments on commit 5bbaa27

Please sign in to comment.