Skip to content

Commit

Permalink
Update histogram_02_unsafe_parallel.cpp
Browse files Browse the repository at this point in the history
added tbb:: (not needed due to CTAD - but it is more consistent with the book style
  • Loading branch information
jamesreinders authored Dec 2, 2024
1 parent 321e0f9 commit 800f77b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ int main(int argc, char** argv) {
// Parallel execution
std::vector<int> hist_p(num_bins);
t0 = tbb::tick_count::now();
parallel_for(tbb::blocked_range<size_t>{0, image.size()},
tbb::parallel_for(tbb::blocked_range<size_t>{0, image.size()},
[&](const tbb::blocked_range<size_t>& r)
{
for (size_t i = r.begin(); i < r.end(); ++i)
Expand Down

0 comments on commit 800f77b

Please sign in to comment.