summaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/executor/stress_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vespalib/src/tests/executor/stress_test.cpp')
-rw-r--r--vespalib/src/tests/executor/stress_test.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/vespalib/src/tests/executor/stress_test.cpp b/vespalib/src/tests/executor/stress_test.cpp
index aa5d9d53955..5c7620afb14 100644
--- a/vespalib/src/tests/executor/stress_test.cpp
+++ b/vespalib/src/tests/executor/stress_test.cpp
@@ -2,12 +2,11 @@
#include <vespa/vespalib/testkit/testapp.h>
#include <vespa/vespalib/util/executor.h>
-#include <vespa/vespalib/util/sync.h>
#include <vespa/vespalib/util/threadstackexecutor.h>
#include <vespa/vespalib/locale/c.h>
-#include <cmath>
using namespace vespalib;
+using namespace std::literals;
uint32_t doStuff(uint32_t input) {
char buf[128];
@@ -131,7 +130,7 @@ Test::Main()
Executor::Task::UP t(new CPUTask(taskSize, result));
t = executor.execute(std::move(t));
while (t.get() != 0) {
- FastOS_Thread::Sleep(10);
+ std::this_thread::sleep_for(10ms);
t = executor.execute(std::move(t));
}
}