Skip to content

Commit

Permalink
Remove single letter variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tizianoGuadagnino committed Mar 18, 2024
1 parent f550a1a commit bb880fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/kiss_icp/core/Registration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ Registration::Registration(int max_num_iteration, double convergence_criterion,
max_num_threads_(max_num_threads > 0 ? max_num_threads : tbb::info::default_concurrency()) {
// This global variable requires static duration storage to be able to manipulate the max
// concurrency from TBB across the entire class
static const auto g = tbb::global_control(tbb::global_control::max_allowed_parallelism,
static_cast<size_t>(max_num_threads_));
static const auto tbb_control_settings = tbb::global_control(

This comment has been minimized.

Copy link
@nachovizzo

nachovizzo Mar 18, 2024

Collaborator

I just wanted to hide it somewhere under the table :) but this also works

tbb::global_control::max_allowed_parallelism, static_cast<size_t>(max_num_threads_));
}

Sophus::SE3d Registration::AlignPointsToMap(const std::vector<Eigen::Vector3d> &frame,
Expand Down

0 comments on commit bb880fd

Please sign in to comment.