diff options
Diffstat (limited to 'vbench/src/apps/vbench/vbench.cpp')
-rw-r--r-- | vbench/src/apps/vbench/vbench.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vbench/src/apps/vbench/vbench.cpp b/vbench/src/apps/vbench/vbench.cpp index ffea64c6034..b5c2897207f 100644 --- a/vbench/src/apps/vbench/vbench.cpp +++ b/vbench/src/apps/vbench/vbench.cpp @@ -44,8 +44,7 @@ int run(const std::string &cfg_name) { VBench vbench(cfg); NotifyDone notify(done); vespalib::RunnablePair runBoth(vbench, notify); - vespalib::Thread thread(runBoth, vbench_thread); - thread.start(); + auto thread = vespalib::Thread::start(runBoth, vbench_thread); while (!SIG::INT.check() && !SIG::TERM.check() && !done.await(1s)) {} if (!done.await(vespalib::duration::zero())) { vbench.abort(); |