Skip to content

Commit c92b5d0

Browse files
committed
Renamed nr_threads_ to num_threads_
1 parent 030910f commit c92b5d0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

filters/include/pcl/filters/farthest_point_sampling.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,25 +80,25 @@ namespace pcl
8080
}
8181

8282
/** \brief Set the number of threads to use when operating in parallel
83-
* \param nr_threads the number of threads to use
83+
* \param num_threads the number of threads to use
8484
*/
8585
inline void
86-
setNumberOfThreads (unsigned int nr_threads)
86+
setNumberOfThreads (unsigned int num_threads)
8787
{
8888
#ifdef _OPENMP
89-
nr_threads_ = nr_threads == 0 ? omp_get_num_procs() : nr_threads;
89+
num_threads_ = num_threads == 0 ? omp_get_num_procs() : num_threads;
9090
#else
91-
if (nr_threads_ != 1)
91+
if (num_threads_ != 1)
9292
PCL_WARN("OpenMP is not available. Keeping number of threads unchanged at 1\n");
9393
#endif
9494
}
9595

96-
/** \brief Get the value of the internal \a nr_threads_ parameter.
96+
/** \brief Get the value of the internal \a num_threads_ parameter.
9797
*/
9898
inline unsigned int
9999
getNumberOfThreads () const
100100
{
101-
return nr_threads_;
101+
return num_threads_;
102102
}
103103

104104
protected:
@@ -108,7 +108,7 @@ namespace pcl
108108
/** \brief Random number seed. */
109109
unsigned int seed_;
110110
/** \brief Number of threads */
111-
unsigned int nr_threads_{1};
111+
unsigned int num_threads_{1};
112112

113113
/** \brief Sample of point indices
114114
* \param indices indices of the filtered point cloud

filters/include/pcl/filters/impl/farthest_point_sampling.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pcl::FarthestPointSampling<PointT>::applyFilter (Indices &indices)
5656
#pragma omp parallel \
5757
default(none) \
5858
shared(distances_to_selected_points, max_index, max_index_point, size, toCloudIndex) \
59-
num_threads(nr_threads_)
59+
num_threads(num_threads_)
6060
{
6161
std::ptrdiff_t local_max_index = max_index;
6262

0 commit comments

Comments
 (0)