Add a job to the list of jobs to be performed by a given workforce thrAddJob
"
wait_on"
list
have completed. Otherwise, it will start as soon as a worker thread becomes available
and all the "
wait_on"
jobs have completed. Jobs are not necessarily started in the order
in which they are added to the workforce. "
func"
, and the "
flags"
and "
checker"
arguments are
ignored. "
Job Control Flags:"
below. "
flags"
) the pointer will be freed automatically by the function
registered using thrFreeFun when the job completes. "
data"
pointer, and 2) an
inherited status pointer. It returns void. "
wait_on"
array. If zero, the "
wait_on"
pointer will be ignored. "
nwait_on"
. No attempt will
be made to start the new job until all the jobs specified in this array have completed. If
NULL is supplied, or if "
nwait_on"
is zero, the new job will be started as soon as a worker
thread becomes available. THR__REPORT_JOB: Indicates that this job is to be included in the list of jobs for which thrJobWait will wait.
THR__FREE_JOBDATA: Indicates that the supplied pointer to the job data ("
data"
) is to be freed
when the job completes. This is performed by passing the supplied "
data"
pointer to the
user-supplied function registered using thrFreeFun (astFree is used if no function is registered). Note,
thrFreeFun is called from within the worker thread.