aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/executor
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-08-18 14:00:30 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-08-18 14:00:30 +0200
commit28c129658fa7084c8fcf4981fc57f71a41dc5362 (patch)
treef4a6d1bca3c5f7d885400adf0ba538abfe664873 /vespalib/src/tests/executor
parent64809ac8367bb4c059f55a8595f47a323237b238 (diff)
Hide the thread thread implementation a bit more.
Diffstat (limited to 'vespalib/src/tests/executor')
-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));
}
}