OpenCV  4.5.5
Open Source Computer Vision
Public Types | Public Member Functions | List of all members
cv::parallel::ParallelForAPI Class Referenceabstract

#include <opencv2/core/parallel/parallel_backend.hpp>

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

Public Types

typedef void(* FN_parallel_for_body_cb_t) (int start, int end, void *data)
 

Public Member Functions

virtual ~ParallelForAPI ()
 
virtual const char * getName () const =0
 
virtual int getNumThreads () const =0
 
virtual int getThreadNum () const =0
 
virtual void parallel_for (int tasks, FN_parallel_for_body_cb_t body_callback, void *callback_data)=0
 
virtual int setNumThreads (int nThreads)=0
 

Detailed Description

Interface for parallel_for backends implementations

See also
setParallelForBackend

Member Typedef Documentation

◆ FN_parallel_for_body_cb_t

typedef void( * cv::parallel::ParallelForAPI::FN_parallel_for_body_cb_t) (int start, int end, void *data)

Constructor & Destructor Documentation

◆ ~ParallelForAPI()

virtual cv::parallel::ParallelForAPI::~ParallelForAPI ( )
virtual

Member Function Documentation

◆ getName()

virtual const char* cv::parallel::ParallelForAPI::getName ( ) const
pure virtual

◆ getNumThreads()

virtual int cv::parallel::ParallelForAPI::getNumThreads ( ) const
pure virtual

◆ getThreadNum()

virtual int cv::parallel::ParallelForAPI::getThreadNum ( ) const
pure virtual

◆ parallel_for()

virtual void cv::parallel::ParallelForAPI::parallel_for ( int  tasks,
FN_parallel_for_body_cb_t  body_callback,
void *  callback_data 
)
pure virtual

◆ setNumThreads()

virtual int cv::parallel::ParallelForAPI::setNumThreads ( int  nThreads)
pure virtual

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