VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Private Member Functions
makVrv::DtJobSplitter Class Reference

this class is used to split work up between threads.

Jobs are added to the splitter using the addJob() method. when the work is ready to be performed, runJobs() is called to process the job list. The job list is cleared when all jobs have finished.

Public Member Functions

 DtJobSplitter ()
 
virtual ~DtJobSplitter ()
 
virtual void addJob (DtJobSplitterJob *job)
 
virtual size_t jobCount ()
 
virtual void runJobs (int threshold)
 

Protected Attributes

std::vector< DtJobSplitterJob * > myJobs
 

Private Member Functions

 DtJobSplitter (const DtJobSplitter &other)
 
DtJobSplitteroperator= (const DtJobSplitter &other)
 

Constructor & Destructor Documentation

makVrv::DtJobSplitter::DtJobSplitter ( )

CTOR.

virtual makVrv::DtJobSplitter::~DtJobSplitter ( )
virtual

DTOR.

makVrv::DtJobSplitter::DtJobSplitter ( const DtJobSplitter other)
private

Copy Constructor not implemented - Copy not allowed.

Member Function Documentation

DtJobSplitter& makVrv::DtJobSplitter::operator= ( const DtJobSplitter other)
private

Assignment Operator not implemented - Assignment not allowed.

virtual void makVrv::DtJobSplitter::addJob ( DtJobSplitterJob job)
virtual

Adds the given job t the master list of jobs.

Parameters
jobThe job to add.
virtual size_t makVrv::DtJobSplitter::jobCount ( )
virtual

Returns the current number of jobs.

virtual void makVrv::DtJobSplitter::runJobs ( int  threshold)
virtual

Runs all jobs that are in the master list. Clears list. This method does not return until the jobs are complete. param threshold The number at which jobs will be divided among threads. In other words, the number of jobs to give each thread.

Member Data Documentation

std::vector<DtJobSplitterJob*> makVrv::DtJobSplitter::myJobs
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)