diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-12-03 14:24:41 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-12-04 18:15:16 +0000 |
commit | 8946dbea418f760e4f0a5cbe2eb2bcbcddd25032 (patch) | |
tree | fc254ea5dea29ddf6a395b8bcdcb8c7540d22238 /jrt_test/src | |
parent | 7700f411ea6f4a3e7c0599fae239ec84c18c0038 (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/src')
-rw-r--r-- | jrt_test/src/tests/mandatory-methods/extract-reflection.cpp | 4 |
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]); } |