52 #ifndef __PCL_ParallelProcess_h 53 #define __PCL_ParallelProcess_h 117 if ( maxProcessors > 0 )
118 SetMaxProcessors( maxProcessors );
130 EnableParallelProcessing( !disable );
144 return m_maxProcessors;
162 m_maxProcessors =
Range( maxProcessors, 1, PCL_MAX_PROCESSORS );
170 pcl::Swap( m_maxProcessors, process.m_maxProcessors );
171 pcl::Swap( m_parallel, process.m_parallel );
176 int m_maxProcessors = PCL_MAX_PROCESSORS;
177 bool m_parallel =
true;
184 #endif // __PCL_ParallelProcess_h void Swap(ParallelProcess &process) noexcept
void EnableParallelProcessing(bool enable=true, int maxProcessors=0) noexcept
void SetMaxProcessors(int maxProcessors) noexcept
void Swap(GenericPoint< T > &p1, GenericPoint< T > &p2) noexcept
int MaxProcessors() const noexcept
bool IsParallelProcessingEnabled() const noexcept
void DisableParallelProcessing(bool disable=true) noexcept
constexpr const T & Range(const T &x, const T &a, const T &b) noexcept
A process using multiple concurrent execution threads.