summaryrefslogtreecommitdiffstats
path: root/fnet
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@yahooinc.com>2023-02-14 10:15:12 +0000
committerHåvard Pettersen <havardpe@yahooinc.com>2023-02-14 15:40:46 +0000
commit98e408c667e3dcda3dc177594ffa4c4d0d99a33e (patch)
tree8086fedd3c4c11ac51fa86f12f68cfe61095ee55 /fnet
parent251bd6d0b21aa2ddac8ef82338f40d37ffc4990f (diff)
stop using fastos thread more places
- also stop using std::jthread - remove Active and Joinable interfaces - remove stop, stopped and slumber - remove currentThread - make start function static - override start for Runnable w/init or custom function - explicit stop/slumber where needed
Diffstat (limited to 'fnet')
-rw-r--r--fnet/src/tests/examples/examples_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/fnet/src/tests/examples/examples_test.cpp b/fnet/src/tests/examples/examples_test.cpp
index 4b9e2a58ef1..1b666898ff2 100644
--- a/fnet/src/tests/examples/examples_test.cpp
+++ b/fnet/src/tests/examples/examples_test.cpp
@@ -3,7 +3,8 @@
#include <vespa/vespalib/process/process.h>
#include <vespa/vespalib/util/size_literals.h>
#include <vespa/vespalib/util/stringfmt.h>
-#include <vespa/vespalib/util/thread.h>
+#include <vespa/vespalib/util/time.h>
+#include <thread>
#include <atomic>
#include <csignal>
@@ -42,7 +43,7 @@ bool run_with_retry(const vespalib::string &cmd) {
for (size_t retry = 0; retry < 60; ++retry) {
if (retry > 0) {
fprintf(stderr, "retrying command in 500ms...\n");
- vespalib::Thread::sleep(500);
+ std::this_thread::sleep_for(500ms);
}
vespalib::string output;
Process proc(cmd, true);