Defined in:Waits for the completion of a batch.
void FinishBatch(Batch *batch);
||The batch to wait on.|
FinishBatchfunction blocks the calling thread and waits for all of the jobs belonging to the batch specified by the
batchparameter to complete. If no jobs had been submitted in the batch since it was constructed or since the last call to
FinishBatchfor the same batch, then this function returns immediately.
After all of the jobs in the batch have completed, each job's finalization function is called, if it has one. Nonpersistent job objects in the batch are destroyed before the