JobsGroup

Adding groups of jobs is faster and groups can have dependencies between each other

Constructors

this
this(string name, JobData[] jobs, int executeOnThreadNum)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

dependantOn
void dependantOn(JobsGroup* parent)

Make this group dependant from another group Dependant group won't start untill its dependencies will be fulfilled

getDependenciesWaitCount
int getDependenciesWaitCount()

Returns number of dependencies this group is waiting for

Variables

executeOnThreadNum
int executeOnThreadNum;

Thread num to execute jobs on

jobs
JobData[] jobs;

Jobs to be executed by this group, jobs have to live as long as group lives

name
string name;

Name of group

onFinish
void delegate(JobsGroup* group) onFinish;
Undocumented in source.
thPool
ThreadPool* thPool;

Thread pool of this group

Meta