summaryrefslogtreecommitdiffstats
path: root/vespamalloc
diff options
context:
space:
mode:
Diffstat (limited to 'vespamalloc')
-rw-r--r--vespamalloc/src/tests/allocfree/allocfree.cpp2
-rw-r--r--vespamalloc/src/tests/allocfree/linklist.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/vespamalloc/src/tests/allocfree/allocfree.cpp b/vespamalloc/src/tests/allocfree/allocfree.cpp
index 80513579a2f..86050d4aee9 100644
--- a/vespamalloc/src/tests/allocfree/allocfree.cpp
+++ b/vespamalloc/src/tests/allocfree/allocfree.cpp
@@ -89,7 +89,7 @@ int Test::Main() {
for (; duration > 0; --duration) {
LOG(info, "%d seconds left...", duration);
- FastOS_Thread::Sleep(1000);
+ std::this_thread::sleep_for(1s);
}
pool.Close();
size_t numFreeOperations(0);
diff --git a/vespamalloc/src/tests/allocfree/linklist.cpp b/vespamalloc/src/tests/allocfree/linklist.cpp
index 11a8d1ddd11..74af380458a 100644
--- a/vespamalloc/src/tests/allocfree/linklist.cpp
+++ b/vespamalloc/src/tests/allocfree/linklist.cpp
@@ -163,7 +163,7 @@ int Test::Main() {
for (; duration > 0; --duration) {
LOG(info, "%d seconds left...", duration);
- FastOS_Thread::Sleep(1000);
+ std::this_thread::sleep_for(1s);
}
pool.Close();
fprintf(stderr, "Did (%lu + %lu) = %lu linkIn operations\n",