thrHaltJob

Halt a running job until other jobs have completed

Description:

This function is intended to be called by a worker thread during the execution of a job. It blocks the current thread until a specified list of other jobs have finished, at which time the current thread resumes.

Invocation

void thrHaltJob( ThrWorkForce workforce, int njob, int job_list, int status )

Arguments

workforce
Pointer to the workforce. NULL should be supplied if this function is called from within a job executing in a worker thread.
njob
The number of job identifiers in the " job_list" array.
job_list
A list of job identifiers. The current thread blocks until all the listed jobs have finished. Any identifiers in this list that refer to jobs that have already finished are ignored.
status
Pointer to the inherited status value.