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 /searchcore/src/apps/vespa-transactionlog-inspect/vespa-transactionlog-inspect.cpp | |
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 'searchcore/src/apps/vespa-transactionlog-inspect/vespa-transactionlog-inspect.cpp')
-rw-r--r-- | searchcore/src/apps/vespa-transactionlog-inspect/vespa-transactionlog-inspect.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/searchcore/src/apps/vespa-transactionlog-inspect/vespa-transactionlog-inspect.cpp b/searchcore/src/apps/vespa-transactionlog-inspect/vespa-transactionlog-inspect.cpp index f5aa74d85e1..5775c31b205 100644 --- a/searchcore/src/apps/vespa-transactionlog-inspect/vespa-transactionlog-inspect.cpp +++ b/searchcore/src/apps/vespa-transactionlog-inspect/vespa-transactionlog-inspect.cpp @@ -7,6 +7,7 @@ #include <vespa/searchlib/transactionlog/translogserver.h> #include <vespa/vespalib/util/programoptions.h> #include <vespa/vespalib/util/xmlstream.h> +#include <vespa/vespalib/util/time.h> #include <vespa/document/config/config-documenttypes.h> #include <vespa/document/repo/documenttyperepo.h> #include <vespa/document/fieldvalue/document.h> @@ -14,6 +15,7 @@ #include <vespa/config/helper/configgetter.hpp> #include <vespa/fastos/app.h> #include <iostream> +#include <thread> #include <vespa/log/log.h> LOG_SETUP("vespa-transactionlog-inspect"); @@ -491,7 +493,7 @@ protected: return 1; } for (size_t i = 0; !callback.isEof() && (i < 60 * 60); i++ ) { - FastOS_Thread::Sleep(1000); + std::this_thread::sleep_for(1s); } return 0; } |