![]() |
VR-Forces 4.8 Class Documentation
|
this class is used to split work up between threads. More...
Public Member Functions | |
| DtJobSplitter (DtDe &de) | |
| CTOR. More... | |
| virtual | ~DtJobSplitter () |
| DTOR. More... | |
| virtual void | addJob (DtJobSplitterJob *job) |
| Adds the given job t the master list of jobs. More... | |
| virtual size_t | jobCount () |
| Returns the current number of jobs. More... | |
| virtual void | runJobs (int threshold) |
| Runs all jobs that are in the master list. More... | |
Protected Attributes | |
| DtDe & | myDe |
| std::vector< DtJobSplitterJob * > | myJobs |
Private Member Functions | |
| DtJobSplitter () | |
| Default Constructor not implemented. More... | |
| DtJobSplitter (const DtJobSplitter &other) | |
| Copy Constructor not implemented - Copy not allowed. More... | |
| DtJobSplitter & | operator= (const DtJobSplitter &other) |
| Assignment Operator not implemented - Assignment not allowed. More... | |
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.
| makVrv::DtJobSplitter::DtJobSplitter | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
private |
Default Constructor not implemented.
|
private |
Copy Constructor not implemented - Copy not allowed.
|
private |
Assignment Operator not implemented - Assignment not allowed.
|
virtual |
Adds the given job t the master list of jobs.
| job | The job to add. |
|
virtual |
Returns the current number of jobs.
|
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.
|
protected |
|
protected |