From 2b1c002b213b2ac48861b020936662ec4a134272 Mon Sep 17 00:00:00 2001 From: Natsu-Akatsuki <1024756993@qq.com> Date: Tue, 12 Nov 2024 19:18:46 +0800 Subject: [PATCH] Improve thread safety in by changing vector to vector --- src/laserMapping.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/laserMapping.cpp b/src/laserMapping.cpp index 319b4a0..0119ebb 100644 --- a/src/laserMapping.cpp +++ b/src/laserMapping.cpp @@ -699,7 +699,7 @@ void h_share_model_photometric(state_ikfom &s, esekfom::dyn_share_datastruct term_selected(n_features * n_patch, false); + std::vector term_selected(n_features * n_patch, false); #ifdef MP_EN omp_set_num_threads(MP_PROC_NUM);