thrDestroyWorkforce

Destroy a workforce

Description:

This function frees all resources used by a work force. This includes cancelling the worker threads, and freeing memory structures. The calling thread blocks until any busy workers have completed their jobs. The worker threads themselves are then terminated.

Invocation

ThrWorkForce thrDestroyWorkforce( ThrWorkForce workforce )

Arguments

workforce
Pointer to the workforce to be destroyed. If NULL is supplied, this function returns without action.

Returned Value

A NULL pointer is returned.