From 8946dbea418f760e4f0a5cbe2eb2bcbcddd25032 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Tue, 3 Dec 2019 14:24:41 +0000 Subject: FastOS_THread::Sleep -> std::chrono::sleep_for Renamed Timer -> ScheduledExecutor. Do not include thread.h when not needed in header files. --- jrt_test/src/tests/mandatory-methods/extract-reflection.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'jrt_test/src') 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 #include +#include +#include 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]); } -- cgit v1.2.3