Destroys the condition variable.
#include <synch.h> int cond_destroy ( cond_t *cvp );
(IN) Points to the condition variable to be destroy.
Returns 0. No error conditions have been defined.
The cond_destory function does not release the memory allocated to the condition variable; however, it does release the memory allocated with the cond_init function.
To release the memory for the condition variable, use the function paired with the allocate function. For example, if you used malloc to allocate the memory for the condition variable, use free to release the memory.