File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
features/include/pcl/features
filters/include/pcl/filters Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ namespace pcl
121121 int nr_bins_f1_{11 }, nr_bins_f2_{11 }, nr_bins_f3_{11 };
122122 private:
123123 /* * \brief The number of threads the scheduler should use. */
124- unsigned int num_threads_;
124+ unsigned int num_threads_{ 1 } ;
125125 };
126126}
127127
Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ namespace pcl
8080 inline void
8181 setNumberOfThreads (unsigned int num_threads = 0 )
8282 {
83- #ifdef _OPENMP num_threads_ =
84- num_threads != 0 ? num_threads : omp_get_num_procs ();
83+ #ifdef _OPENMP
84+ num_threads_ = num_threads != 0 ? num_threads : omp_get_num_procs ();
8585#else
8686 if (num_threads_ != 1 ) {
8787 PCL_WARN (
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ namespace pcl
121121 initCompute () override ;
122122
123123 /* * \brief The number of threads the scheduler should use. */
124- unsigned int num_threads_;
124+ unsigned int num_threads_{ 1 } ;
125125 };
126126
127127 /* * \brief SHOTColorEstimationOMP estimates the Signature of Histograms of OrienTations (SHOT) descriptor for a given point cloud dataset
Original file line number Diff line number Diff line change @@ -126,8 +126,8 @@ namespace pcl
126126 inline void
127127 setNumberOfThreads (unsigned int num_threads = 0 )
128128 {
129- #ifdef _OPENMP num_threads_ =
130- num_threads != 0 ? num_threads : omp_get_num_procs ();
129+ #ifdef _OPENMP
130+ num_threads_ = num_threads != 0 ? num_threads : omp_get_num_procs ();
131131#else
132132 if (num_threads_ != 1 ) {
133133 PCL_WARN (
You can’t perform that action at this time.
0 commit comments