Skip to content

Commit 87b3a58

Browse files
committed
use new count instead of deprecated thread_safe
1 parent c234637 commit 87b3a58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark/histogram_parallel_filling.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// or copy at http://www.boost.org/LICENSE_1_0.txt)
66

77
#include <benchmark/benchmark.h>
8-
#include <boost/histogram/accumulators/thread_safe.hpp>
8+
#include <boost/histogram/accumulators/count.hpp>
99
#include <boost/histogram/axis/regular.hpp>
1010
#include <boost/histogram/histogram.hpp>
1111
#include <boost/histogram/make_histogram.hpp>
@@ -29,7 +29,7 @@ using namespace boost::histogram;
2929
using namespace std::chrono_literals;
3030

3131
using DS = dense_storage<unsigned>;
32-
using DSTS = dense_storage<accumulators::thread_safe<unsigned>>;
32+
using DSTS = dense_storage<accumulators::count<unsigned, true>>;
3333

3434
static void NoThreads(benchmark::State& state) {
3535
std::default_random_engine gen(1);

0 commit comments

Comments
 (0)