thrWait

Wait for a workforce to have completed all its jobs

Description:

This function blocks the calling thread until all jobs within the current job context (see thrBeginJobContext) have been completed.

A side effect of this function is to empty the list of jobs waiting to be reported by thrJobWait. Upon exit from this function, all jobs waiting to be reported via thrJobWait will be considered to have been reported (again, this only affects jobs within the current job context).

Invocation

thrWait( ThrWorkForce workforce, int status )

Arguments

workforce
Pointer to the workforce. If NULL is supplied, this function returns immediately.
status
Pointer to the inherited status value.

Notes: