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
121
121
int nr_bins_f1_{11 }, nr_bins_f2_{11 }, nr_bins_f3_{11 };
122
122
private:
123
123
/* * \brief The number of threads the scheduler should use. */
124
- unsigned int num_threads_;
124
+ unsigned int num_threads_{ 1 } ;
125
125
};
126
126
}
127
127
Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ namespace pcl
80
80
inline void
81
81
setNumberOfThreads (unsigned int num_threads = 0 )
82
82
{
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 ();
85
85
#else
86
86
if (num_threads_ != 1 ) {
87
87
PCL_WARN (
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ namespace pcl
121
121
initCompute () override ;
122
122
123
123
/* * \brief The number of threads the scheduler should use. */
124
- unsigned int num_threads_;
124
+ unsigned int num_threads_{ 1 } ;
125
125
};
126
126
127
127
/* * \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
126
126
inline void
127
127
setNumberOfThreads (unsigned int num_threads = 0 )
128
128
{
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 ();
131
131
#else
132
132
if (num_threads_ != 1 ) {
133
133
PCL_WARN (
You can’t perform that action at this time.
0 commit comments