From 800f77b08f05154e4680b5e5662d844d4f5f11d0 Mon Sep 17 00:00:00 2001 From: James Reinders Date: Mon, 2 Dec 2024 11:12:10 -0800 Subject: [PATCH] Update histogram_02_unsafe_parallel.cpp added tbb:: (not needed due to CTAD - but it is more consistent with the book style --- new_examples/synchronization/histogram_02_unsafe_parallel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new_examples/synchronization/histogram_02_unsafe_parallel.cpp b/new_examples/synchronization/histogram_02_unsafe_parallel.cpp index 4fa3fe4865..0e4a748320 100644 --- a/new_examples/synchronization/histogram_02_unsafe_parallel.cpp +++ b/new_examples/synchronization/histogram_02_unsafe_parallel.cpp @@ -50,7 +50,7 @@ int main(int argc, char** argv) { // Parallel execution std::vector hist_p(num_bins); t0 = tbb::tick_count::now(); - parallel_for(tbb::blocked_range{0, image.size()}, + tbb::parallel_for(tbb::blocked_range{0, image.size()}, [&](const tbb::blocked_range& r) { for (size_t i = r.begin(); i < r.end(); ++i)