summaryrefslogtreecommitdiffstats
path: root/jrt_test
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-12-03 14:24:41 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-12-04 18:15:16 +0000
commit8946dbea418f760e4f0a5cbe2eb2bcbcddd25032 (patch)
treefc254ea5dea29ddf6a395b8bcdcb8c7540d22238 /jrt_test
parent7700f411ea6f4a3e7c0599fae239ec84c18c0038 (diff)
FastOS_THread::Sleep -> std::chrono::sleep_for
Renamed Timer -> ScheduledExecutor. Do not include thread.h when not needed in header files.
Diffstat (limited to 'jrt_test')
-rw-r--r--jrt_test/src/tests/mandatory-methods/extract-reflection.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/jrt_test/src/tests/mandatory-methods/extract-reflection.cpp b/jrt_test/src/tests/mandatory-methods/extract-reflection.cpp
index 40c54980c11..cd1ad7e6eed 100644
--- a/jrt_test/src/tests/mandatory-methods/extract-reflection.cpp
+++ b/jrt_test/src/tests/mandatory-methods/extract-reflection.cpp
@@ -2,6 +2,8 @@
#include <vespa/fastos/app.h>
#include <vespa/fnet/frt/frt.h>
+#include <vespa/vespalib/util/time.h>
+#include <thread>
class RPCInfo : public FastOS_Application
{
@@ -85,7 +87,7 @@ public:
if (info->GetErrorCode() != FRTE_RPC_CONNECTION) {
break;
}
- FastOS_Thread::Sleep(1000);
+ std::this_thread::sleep_for(1s);
target->SubRef();
target = supervisor.GetTarget(_argv[1]);
}