Skip to content

Commit

Permalink
Merge pull request #30 from Natsu-Akatsuki/main
Browse files Browse the repository at this point in the history
Improve thread safety in by changing vector<bool> to vector<int>
  • Loading branch information
patripfr authored Nov 12, 2024
2 parents b3b1b24 + 2b1c002 commit 7b90670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/laserMapping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ void h_share_model_photometric(state_ikfom &s, esekfom::dyn_share_datastruct<dou
ekfom_data.h = VectorXd::Zero(n_features*n_patch);
Eigen::MatrixXd h_x_terms = MatrixXd::Zero(n_features*n_patch, 12);
Eigen::VectorXd h_terms = VectorXd::Zero(n_features*n_patch);
std::vector<bool> term_selected(n_features * n_patch, false);
std::vector<int> term_selected(n_features * n_patch, false);

#ifdef MP_EN
omp_set_num_threads(MP_PROC_NUM);
Expand Down

0 comments on commit 7b90670

Please sign in to comment.