OpenCV  4.7.0-dev
Open Source Computer Vision
Public Member Functions | Protected Attributes | List of all members
cv::parallel::openmp::ParallelForBackend Class Reference

#include <opencv2/core/parallel/backend/parallel_for.openmp.hpp>

Inheritance diagram for cv::parallel::openmp::ParallelForBackend:
cv::parallel::ParallelForAPI

Public Member Functions

 ParallelForBackend ()
 
virtual ~ParallelForBackend ()
 
const char * getName () const CV_OVERRIDE
 
virtual int getNumThreads () const CV_OVERRIDE
 
virtual int getThreadNum () const CV_OVERRIDE
 
virtual void parallel_for (int tasks, FN_parallel_for_body_cb_t body_callback, void *callback_data) CV_OVERRIDE
 
virtual int setNumThreads (int nThreads) CV_OVERRIDE
 
- Public Member Functions inherited from cv::parallel::ParallelForAPI
virtual ~ParallelForAPI ()
 

Protected Attributes

int numThreads
 
int numThreadsMax
 

Additional Inherited Members

- Public Types inherited from cv::parallel::ParallelForAPI
typedef void(* FN_parallel_for_body_cb_t) (int start, int end, void *data)
 

Detailed Description

OpenMP parallel_for API implementation

See also
setParallelForBackend

Constructor & Destructor Documentation

◆ ParallelForBackend()

cv::parallel::openmp::ParallelForBackend::ParallelForBackend ( )
inline

◆ ~ParallelForBackend()

virtual cv::parallel::openmp::ParallelForBackend::~ParallelForBackend ( )
inlinevirtual

Member Function Documentation

◆ getName()

const char* cv::parallel::openmp::ParallelForBackend::getName ( ) const
inlinevirtual

◆ getNumThreads()

virtual int cv::parallel::openmp::ParallelForBackend::getNumThreads ( ) const
inlinevirtual

◆ getThreadNum()

virtual int cv::parallel::openmp::ParallelForBackend::getThreadNum ( ) const
inlinevirtual

◆ parallel_for()

virtual void cv::parallel::openmp::ParallelForBackend::parallel_for ( int  tasks,
FN_parallel_for_body_cb_t  body_callback,
void *  callback_data 
)
inlinevirtual

◆ setNumThreads()

virtual int cv::parallel::openmp::ParallelForBackend::setNumThreads ( int  nThreads)
inlinevirtual

Member Data Documentation

◆ numThreads

int cv::parallel::openmp::ParallelForBackend::numThreads
protected

◆ numThreadsMax

int cv::parallel::openmp::ParallelForBackend::numThreadsMax
protected

The documentation for this class was generated from the following file: