diff options
Diffstat (limited to 'benchmark')
| -rw-r--r-- | benchmark/bench_misc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmark/bench_misc.cpp b/benchmark/bench_misc.cpp index f5f57f4d6..148f24de7 100644 --- a/benchmark/bench_misc.cpp +++ b/benchmark/bench_misc.cpp @@ -105,7 +105,8 @@ BENCH(NewObj, "new struct, then delete") { #if !TD_THREAD_UNSUPPORTED BENCH(ThreadNew, "new struct, then delete in 2 threads") { - NewObjBench a, b; + NewObjBench a; + NewObjBench b; td::thread ta([&] { a.run(n / 2); }); td::thread tb([&] { b.run(n - n / 2); }); ta.join(); |
