Blender  V3.3
Public Member Functions | Protected Attributes | List of all members
btITaskScheduler Class Referenceabstract

#include <btThreads.h>

Inheritance diagram for btITaskScheduler:
btTaskSchedulerSequential

Public Member Functions

 btITaskScheduler (const char *name)
 
virtual ~btITaskScheduler ()
 
const char * getName () const
 
virtual int getMaxNumThreads () const =0
 
virtual int getNumThreads () const =0
 
virtual void setNumThreads (int numThreads)=0
 
virtual void parallelFor (int iBegin, int iEnd, int grainSize, const btIParallelForBody &body)=0
 
virtual btScalar parallelSum (int iBegin, int iEnd, int grainSize, const btIParallelSumBody &body)=0
 
virtual void sleepWorkerThreadsHint ()
 
virtual void activate ()
 
virtual void deactivate ()
 

Protected Attributes

const char * m_name
 
unsigned int m_savedThreadCounter
 
bool m_isActive
 

Detailed Description

Definition at line 123 of file btThreads.h.

Constructor & Destructor Documentation

◆ btITaskScheduler()

btITaskScheduler::btITaskScheduler ( const char *  name)

Definition at line 336 of file btThreads.cpp.

References m_isActive, m_name, and m_savedThreadCounter.

◆ ~btITaskScheduler()

virtual btITaskScheduler::~btITaskScheduler ( )
inlinevirtual

Definition at line 127 of file btThreads.h.

Member Function Documentation

◆ activate()

void btITaskScheduler::activate ( )
virtual

◆ deactivate()

void btITaskScheduler::deactivate ( )
virtual

◆ getMaxNumThreads()

virtual int btITaskScheduler::getMaxNumThreads ( ) const
pure virtual

Implemented in btTaskSchedulerSequential.

◆ getName()

const char* btITaskScheduler::getName ( ) const
inline

Definition at line 128 of file btThreads.h.

References m_name.

◆ getNumThreads()

virtual int btITaskScheduler::getNumThreads ( ) const
pure virtual

Implemented in btTaskSchedulerSequential.

Referenced by writeGrainSizes().

◆ parallelFor()

virtual void btITaskScheduler::parallelFor ( int  iBegin,
int  iEnd,
int  grainSize,
const btIParallelForBody body 
)
pure virtual

Implemented in btTaskSchedulerSequential.

Referenced by btParallelFor().

◆ parallelSum()

virtual btScalar btITaskScheduler::parallelSum ( int  iBegin,
int  iEnd,
int  grainSize,
const btIParallelSumBody body 
)
pure virtual

Implemented in btTaskSchedulerSequential.

Referenced by btParallelSum().

◆ setNumThreads()

virtual void btITaskScheduler::setNumThreads ( int  numThreads)
pure virtual

Implemented in btTaskSchedulerSequential.

◆ sleepWorkerThreadsHint()

virtual void btITaskScheduler::sleepWorkerThreadsHint ( )
inlinevirtual

Definition at line 135 of file btThreads.h.

Member Data Documentation

◆ m_isActive

bool btITaskScheduler::m_isActive
protected

Definition at line 144 of file btThreads.h.

Referenced by activate(), btITaskScheduler(), and deactivate().

◆ m_name

const char* btITaskScheduler::m_name
protected

Definition at line 142 of file btThreads.h.

Referenced by btITaskScheduler(), and getName().

◆ m_savedThreadCounter

unsigned int btITaskScheduler::m_savedThreadCounter
protected

Definition at line 143 of file btThreads.h.

Referenced by activate(), btITaskScheduler(), and deactivate().


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