52 #ifndef __PCL_ParallelProcess_h
53 #define __PCL_ParallelProcess_h
124 if ( maxProcessors > 0 )
125 SetMaxProcessors( maxProcessors );
137 EnableParallelProcessing( !disable );
151 return m_maxProcessors;
172 if ( maxProcessors > 0 )
173 m_maxProcessors =
Min( maxProcessors, PCL_MAX_PROCESSORS );
181 pcl::Swap( m_maxProcessors, process.m_maxProcessors );
182 pcl::Swap( m_parallel, process.m_parallel );
187 int m_maxProcessors = PCL_MAX_PROCESSORS;
188 bool m_parallel =
true;
A process using multiple concurrent execution threads.
void SetMaxProcessors(int maxProcessors) noexcept
bool IsParallelProcessingEnabled() const noexcept
ParallelProcess()=default
ParallelProcess(const ParallelProcess &)=default
virtual ~ParallelProcess()
void Swap(ParallelProcess &process) noexcept
void DisableParallelProcessing(bool disable=true) noexcept
int MaxProcessors() const noexcept
void EnableParallelProcessing(bool enable=true, int maxProcessors=0) noexcept
void Swap(GenericPoint< T > &p1, GenericPoint< T > &p2) noexcept
constexpr const T & Min(const T &a, const T &b) noexcept