nndeploy C++ API  0.2.0
nndeploy C++ API
Public Member Functions | List of all members
nndeploy::thread_pool::ParallelForApi Class Referenceabstract

#include <parallel_for_api.h>

Inheritance diagram for nndeploy::thread_pool::ParallelForApi:
[legend]

Public Member Functions

virtual int getThreadNum ()=0
 
virtual int parallelFor (const base::Range &range, const ParallelLoopBody &body, double nstripes=-1.0)=0
 
 ParallelForApi ()=default
 
virtual void setThreadNum (int num)=0
 
virtual ~ParallelForApi ()=default
 

Detailed Description

Definition at line 9 of file parallel_for_api.h.

Constructor & Destructor Documentation

◆ ParallelForApi()

nndeploy::thread_pool::ParallelForApi::ParallelForApi ( )
default

◆ ~ParallelForApi()

virtual nndeploy::thread_pool::ParallelForApi::~ParallelForApi ( )
virtualdefault

Member Function Documentation

◆ getThreadNum()

virtual int nndeploy::thread_pool::ParallelForApi::getThreadNum ( )
pure virtual

◆ parallelFor()

virtual int nndeploy::thread_pool::ParallelForApi::parallelFor ( const base::Range range,
const ParallelLoopBody body,
double  nstripes = -1.0 
)
pure virtual

◆ setThreadNum()

virtual void nndeploy::thread_pool::ParallelForApi::setThreadNum ( int  num)
pure virtual

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